Sha256: 6339efee68d635ff24089262ce4e554912af6a2f8a2cd5bd3c6006dd2ffb7da5

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

BEGIN {
   module Kernel

     h = Hash.new

     define_method(:requiree) do
       h
     end

     r = method :require

     define_method(:require) do |a|
       r.call(a)
       h[a] = caller
     end

   end
}


def p(*args)
  super *(args << caller[0])
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
qed-1.0.0 lib/qed/utilities/monitor.rb
quarry-0.5.2 lib/quarry/monitor.rb