Method: Dry::Core::BasicObject.const_missing

Defined in:
lib/dry/core/basic_object.rb

.const_missing(name) ⇒ Object, Module

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Lookups constants at the top-level namespace, if they are missing in the current context.

Parameters:

  • name (Symbol)

    the constant name

Returns:

  • (Object, Module)

    the constant

Raises:

  • (NameError)

    if the constant cannot be found

See Also:

Since:

  • 0.8.0



23
24
25
# File 'lib/dry/core/basic_object.rb', line 23

def self.const_missing(name)
  ::Object.const_get(name)
end