Sha256: e3ed31cbe277009ecb5aae906f5207fe1d246381ab767f35550c8642daa83d37

Contents?: true

Size: 268 Bytes

Versions: 15

Compression:

Stored size: 268 Bytes

Contents

$knj_require_info = {}

class Object
  alias_method :require_knj, :require
  
  def require(path)
    stat = require_knj(path)
    
    if stat and !$knj_require_info.key?(path)
      $knj_require_info[path] = {:caller => caller}
    end
    
    return stat
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
knjrbfw-0.0.23 lib/knj/includes/require_info.rb
knjrbfw-0.0.22 lib/knj/includes/require_info.rb
knjrbfw-0.0.21 lib/knj/includes/require_info.rb
knjrbfw-0.0.20 lib/knj/includes/require_info.rb
knjrbfw-0.0.19 lib/knj/includes/require_info.rb
knjrbfw-0.0.18 lib/knj/includes/require_info.rb
knjrbfw-0.0.17 lib/knj/includes/require_info.rb
knjrbfw-0.0.16 lib/knj/includes/require_info.rb
knjrbfw-0.0.15 lib/knj/includes/require_info.rb
knjrbfw-0.0.14 lib/knj/includes/require_info.rb
knjrbfw-0.0.13 lib/knj/includes/require_info.rb
knjrbfw-0.0.12 lib/knj/includes/require_info.rb
knjrbfw-0.0.11 lib/knj/includes/require_info.rb
knjrbfw-0.0.10 lib/knj/includes/require_info.rb
knjrbfw-0.0.9 lib/knj/includes/require_info.rb