-
-
Save roman/231304 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 | |
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