CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/hooks/array_to_s.rb
Views: 1904
1
class Array
2
@@to_s_reported = {}
3
def to_s(*args)
4
if (not @@to_s_reported[caller[0].to_s])
5
$stderr.puts "HOOK: Array#to_s at #{caller.join("\t")}"
6
@@to_s_reported[caller[0].to_s] = true
7
end
8
super(*args)
9
end
10
end
11
12