My favorites | Sign in
Project Home Downloads Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 22 attachment: subject.rb (373 bytes)

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
invalidations = []
set_trace_func(Proc.new { |event, file, lineno, mid, bidning, klass|
invalidations << "#{file}:#{lineno} #{klass}##{mid}" if event == 'method-cache-cleared'
})

module A
def to_s; 'A'; end
end

module B
def to_s; 'B'; end
end

class Test
include A
undef to_s
end

t = Test.new
t.extend B
t.to_s

set_trace_func(nil)

puts invalidations.inspect
Powered by Google Project Hosting