Last active
August 29, 2015 14:09
Revisions
-
unrealhoang revised this gist
Nov 18, 2014 . 1 changed file with 2 additions and 2 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,7 +1,7 @@ module A module B def self.hello "hello root" end end end @@ -13,7 +13,7 @@ module C module A module B def self.hello "hello inner" end end end -
unrealhoang renamed this gist
Nov 18, 2014 . 1 changed file with 1 addition and 3 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,4 +1,3 @@ module A module B def self.hello @@ -20,5 +19,4 @@ def self.hello end A::B.hello # => “hello inner” ::A::B.hello # => “hello root” end -
unrealhoang created this gist
Nov 18, 2014 .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,24 @@ ``` module A module B def self.hello “hello root" end end end A::B.hello # => “hello root” ::A::B.hello # => “hello root” module C module A module B def self.hello “hello inner" end end end A::B.hello # => “hello inner” ::A::B.hello # => “hello root” end ```