Sha256: b59617f5688344e5466dea06d2946f3352c9292bdf3d4581504b00789fd6ac44

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

class Object
  # Object will call this method when method const_get can't get constant
  def self.const_missing(c)
    # TODO avoid infiniti call: const_get -> const_missing -> const_get...
    require Rhino.to_underscore(c.to_s)
    Object.const_get(c)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rhino-framework-0.1.1 lib/rhino/dependencies.rb
rhino-framework-0.0.4 lib/rhino/dependencies.rb