Files
metasploit-gs/test/hooks/array_to_s.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
240 B
Ruby
Raw Normal View History

2009-10-01 16:04:48 +00:00
class Array
2013-09-30 13:47:53 -05: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