Skip to content

Instantly share code, notes, and snippets.

@adamcooke
Created September 4, 2012 08:41
Show Gist options
  • Save adamcooke/fdae8af521c868b5df98 to your computer and use it in GitHub Desktop.
Save adamcooke/fdae8af521c868b5df98 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p290 :001 > hello
NameError: undefined local variable or method `hello' for main:Object
from (irb):1
from /Users/adam/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
ruby-1.9.2-p290 :002 > for hello in []
ruby-1.9.2-p290 :003?> end
=> []
ruby-1.9.2-p290 :004 > hello
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment