blob: 88f92932e95a102d7a70631948cd136f4eb59984 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class A
end
class B < A
end
module M
refine(A) {
def abc
puts "abc in A"
end
}
refine(B) {
def abc
super
puts "abc in B"
end
}
end
using M
B.new.abc
|