Created
February 10, 2009 01:44
-
-
Save sprite2005/61167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\statemachine>irb | |
irb(main):001:0> class Foo | |
irb(main):002:1> def Bar | |
irb(main):003:2> end | |
irb(main):004:1> end | |
=> nil | |
irb(main):005:0> @foo = Foo | |
=> Foo | |
irb(main):006:0> @foo.Bar | |
NoMethodError: undefined method `Bar' for Foo:Class | |
from (irb):6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment