mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
11 lines
239 B
Ruby
11 lines
239 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
|