Project

General

Profile

Bug #15720 ยป bug.rb

chocolateboy (Chocolate Boy), 03/21/2019 08:07 PM

 
1
module M1
2
  refine Kernel do
3
    def foo
4
      'foo called!'
5
    end
6
  end
7
end
8

    
9
module M2
10
  refine Kernel do
11
    def bar
12
      'bar called!'
13
    end
14
  end
15
end
16

    
17
using M1
18

    
19
puts foo
20
puts bar