Module Extensions::RelativeConstGet
In: lib/reactive_resource/extensions/relative_const_get.rb

Supplies RelativeConstGet#relative_const_get, which is like const_get, except it attempts to resolve using the current class‘s module, rather than the class‘s scope itself.

Methods

Public Instance methods

Finds the constant with name name, relative to the calling module. For instance, A::B.const_get_relative("C") will search for A::C, then ::C. This is heavily inspired by find_resource_in_modules in active_resource.

[Validate]