2011-01-03 18:45:11 +00:00
|
|
|
print "Enter name: "
|
|
|
|
name = gets.chomp
|
|
|
|
puts "Your name is #{name}"
|
2011-01-03 18:52:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
adjective = "dusty"
|
|
|
|
|
|
|
|
puts %q{These runes are "#{adjective}," wouldn't you say?}
|
|
|
|
puts %Q{These runes are "#{adjective}," wouldn't you say?}
|
|
|
|
|
|
|
|
|
|
|
|
puts %Q{Math isn't exactly my "strong suit," what with 2 + 1 being #{2 + 2}}
|
|
|
|
|
|
|
|
puts %Q{
|
|
|
|
Perhaps a multiline alternate quoting is of your liking, #{name}?
|
|
|
|
One in which 'single' and "double" quotes are both safe without
|
|
|
|
#{adjective} quoting? Smashing!
|
|
|
|
|
|
|
|
}
|