Created
November 10, 2009 21:40
-
-
Save hassox/231290 to your computer and use it in GitHub Desktop.
This file contains 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
module Foo | |
def test | |
Baz | |
end | |
end | |
=> nil | |
class Bar | |
include Foo | |
class Baz | |
end | |
end | |
=> nil | |
b = Bar.new | |
=> #<Bar:0x101275978> | |
b.test | |
NameError: uninitialized constant Foo::Baz | |
from (irb):3:in `test' | |
from (irb):12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment