Module: Eco::Language::Delegation::ForDelegator::ConstLookupHooks

Included in:
ChainableDelegator
Defined in:
lib/eco/language/delegation/for_delegator/const_lookup_hooks.rb

Overview

Note:
  1. It includes ConstDelegator (which includes DelegatedClass).
  2. This class installs new instance methods.
Note:

for each not inherited constant that isn't part of the delegated object's class, it will create a undercore/snake named instance method, to ease constant lookup througout chained/wrapped delegators.

This approach only makes sense to be used in Delegator and related helpers.

Defined Under Namespace

Modules: ClassMethods