String interpolation: Difference between revisions

Content deleted Content added
Ruby: add another variation of ruby interpolation
m Ruby: make consistent with python example
Line 58:
puts "I have %s apples" % apples
# or
puts "I have %{counta} apples" % {counta: apples}
</source>