Sha256: c748479e0f48d397fc898a793030c9192071271da2b670936243c9d9b1b7dbab
Contents?: true
Size: 371 Bytes
Versions: 6
Compression:
Stored size: 371 Bytes
Contents
```ruby class Object def parent_caller caller[0].match(/`(.*)'/)[1] end def all_callers caller.map{|x| x.match(/`(.*)'/)[1] if self.respond_to? x.match(/`(.*)'/)[1].to_sym}.compact end def caller_key caller[0].hash end end all_callers class Hi def fish yield end def flop fish do all_callers end end end Hi.new.flop ```
Version data entries
6 entries across 6 versions & 2 rubygems