2009-10-01 16:04:48 +00:00
|
|
|
class Array
|
2013-09-30 18:47:53 +00:00
|
|
|
@@to_s_reported = {}
|
|
|
|
def to_s(*args)
|
|
|
|
if(not @@to_s_reported[caller[0].to_s])
|
|
|
|
$stderr.puts "HOOK: Array#to_s at #{caller.join("\t")}"
|
|
|
|
@@to_s_reported[caller[0].to_s] = true
|
|
|
|
end
|
|
|
|
super(*args)
|
|
|
|
end
|
2009-10-01 16:04:48 +00:00
|
|
|
end
|