Skip to content

Instantly share code, notes, and snippets.

@pcarrier
Created March 26, 2013 00:09
Show Gist options
  • Select an option

  • Save pcarrier/5242060 to your computer and use it in GitHub Desktop.

Select an option

Save pcarrier/5242060 to your computer and use it in GitHub Desktop.
> class A
* def a
* "foo"
* end
* def bind
* binding
* end
* def run
* yield bind
* end
* end
nil
> A.new.run do a end
NameError: undefined local variable or method `a' for main:Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment