Sha256: 7fe672544b3cee22e4d68876bdaf445fa21ee60c05cedf331138a14707d9f53a
Contents?: true
Size: 266 Bytes
Versions: 1
Compression:
Stored size: 266 Bytes
Contents
#!/usr/bin/env ruby # caller_name.rb # yesmar@speakeasy.net module Kernel def caller_name k = caller[0].split(%r{:[\d]*:in}) return k[0] if !k.nil? && !k.empty? nil end end raise RuntimeError, 'This library is for require only' if $0 == __FILE__
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rex-0.0.4 | lib/rex/modules/caller_name.rb |