Skip to content

Instantly share code, notes, and snippets.

@hassox
Created November 10, 2009 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hassox/231290 to your computer and use it in GitHub Desktop.
Save hassox/231290 to your computer and use it in GitHub Desktop.
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