mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
43a3b80401
git-svn-id: file:///home/svn/framework3/trunk@7106 4d416f70-5f16-0410-b530-b9f4589650da
11 lines
224 B
Ruby
11 lines
224 B
Ruby
class Array
|
|
@@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
|
|
end
|