Skip to content

Instantly share code, notes, and snippets.

@roman
Forked from hassox/gist:231290
Created November 10, 2009 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roman/231304 to your computer and use it in GitHub Desktop.
Save roman/231304 to your computer and use it in GitHub Desktop.
module Foo
def test
self.class::Baz
end
end
=> nil
class Bar
include Foo
class Baz
end
end
=> nil
b = Bar.new
=> #<Bar:0x101275978>
b.test
=> Bar::Baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment