Skip to content

Instantly share code, notes, and snippets.

@marcamillion
Created April 15, 2012 22:35
Show Gist options
  • Save marcamillion/2395139 to your computer and use it in GitHub Desktop.
Save marcamillion/2395139 to your computer and use it in GitHub Desktop.
Interactive ruby ready.
> food = ['chi­cken', 'stea­k', 'beef­', 'pork­']
=> ["chicken", "steak", "beef", "pork"]
> food.each do |x|
.. puts x
.. end
=> #<SyntaxError: <script>:1: syntax error, unexpected end-of-file
food = ['chicken', 'steak', 'beef', 'pork'];food.each do |x|;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment