Sha256: 5205934bf45ff9480ab85fe65b189b4928d5bbc1e0cf4834b35a7e02dfc80639

Contents?: true

Size: 197 Bytes

Versions: 3

Compression:

Stored size: 197 Bytes

Contents

Module.class_eval do

  alias const_missing_original const_missing

  def const_missing(name)
    constant = Loader::Fetcher.load(self, name)
    constant || const_missing_original(name)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loader-3.1.0 lib/loader/core_ext/module.rb
loader-3.0.1 lib/loader/core_ext/module.rb
loader-3.0.0 lib/loader/core_ext/module.rb