Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

string interpolation ruby

# to interpolate strings in ruby use #{}

name = "Edmond"
puts "Hello, #{name}!" # outputs "Hello, Edmond!"
Source by github.com #
 
PREVIOUS NEXT
Tagged: #string #interpolation #ruby
ADD COMMENT
Topic
Name
9+5 =