-
-
Save roman/231304 to your computer and use it in GitHub Desktop.
Revisions
-
roman revised this gist
Nov 10, 2009 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ module Foo def test self.class::Baz end end => nil @@ -16,6 +16,4 @@ class Baz => #<Bar:0x101275978> b.test => Bar::Baz -
hassox created this gist
Nov 10, 2009 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ 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