Skip to content

Instantly share code, notes, and snippets.

@samueljseay
Created November 21, 2012 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueljseay/4122912 to your computer and use it in GitHub Desktop.
Save samueljseay/4122912 to your computer and use it in GitHub Desktop.
tutorial error
1.9.3p327 :013 > pets = %w(rex nibbles fred)
=> ["rex", "nibbles", "fred"]
1.9.3p327 :014 > puts pets.map do |pet|
1.9.3p327 :015 > pet.upcase
1.9.3p327 :016?> end
#<Enumerator:0x007f9b4d02a4f0>
=> nil
1.9.3p327 :017 > puts pets.map(&:upcase)
REX
NIBBLES
FRED
=> nil
@parndt
Copy link

parndt commented Nov 21, 2012

@schneems on the video I think you didn't want "puts" in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment