array = %w[one two many]
array.each do |ele|
a=<<-TEXT
This is some text and
this
TEXT
puts a
end
leads to
This is some text and
this --> one <-- is the ele!
This is some text and
this --> two <-- is the ele!
This is some text and
this --> many <-- is the ele!
source
share