Skip to content

Instantly share code, notes, and snippets.

@unrealhoang
Last active August 29, 2015 14:09

Revisions

  1. unrealhoang revised this gist Nov 18, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    module A
    module B
    def self.hello
    hello root"
    "hello root"
    end
    end
    end
    @@ -13,7 +13,7 @@ module C
    module A
    module B
    def self.hello
    hello inner"
    "hello inner"
    end
    end
    end
  2. unrealhoang renamed this gist Nov 18, 2014. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions gistfile1.txt → gistfile1.rb
    Original 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
    ```
    end
  3. unrealhoang created this gist Nov 18, 2014.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original 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
    ```