RosettaCodeData/Task/Literals-String/Ruby/literals-string-3.rb
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

10 lines
230 B
Ruby

print <<HERE
With an unquoted delimiter, this interpolates:
a = #{a}
HERE
print <<-INDENTED
This delimiter can have whitespace before it
INDENTED
print <<'NON_INTERPOLATING'
This will not interpolate: #{a}
NON_INTERPOLATING