Skip to content

Instantly share code, notes, and snippets.

@doodlehaus
Created August 31, 2012 02:11
Show Gist options
  • Save doodlehaus/3547916 to your computer and use it in GitHub Desktop.
Save doodlehaus/3547916 to your computer and use it in GitHub Desktop.
Ruby string interpolation that's new to me
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