wycats (owner)

Revisions

gist: 211362 Download_button fork
public
Public Clone URL: git://gist.github.com/211362.git
Embed All Files: show embed
wot.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module Foo1
  module Bar1
    def self.stuff
      @@stuff ||= []
    end
  end
end
 
module Foo2
  module Bar2
  end
  
  class << Bar2
    def stuff
      @@stuff ||= []
    end
  end
end
 
Foo1::Bar1.stuff << 1
p Foo1::Bar1.stuff
 
Foo2::Bar2.stuff << 1
p Foo2::Bar2.stuff