Created
August 31, 2012 02:11
-
-
Save doodlehaus/3547916 to your computer and use it in GitHub Desktop.
Ruby string interpolation that's new to me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "We'd have %s beans, %s jars, and %s crates." % [jelly_beans, jars, crates] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment