Complex Ruby string interpolation

Ruby code posted
created at 20 Feb 14:07, updated at 04 Mar 04:15

Edit | Back
1
2
3
4
5
6
7
8
9
a.collect {|x| x + "!#{x}" } + ["#{1}"]

x = "abc x#{a.collect {|x| x + "!#{x}" } + ["#{1}"]}x cba"

puts "HELLO WORLD"

def method
   puts "HEO"
end
157 Bytes in 2 ms with coderay