Module: RactorRailsShim::FallbackBuilder::ValueLookup
- Defined in:
- lib/ractor_rails_shim/roles/fallback_builder.rb
Overview
ValueLookup: Chain of Responsibility for resolving class_attribute /
mattr_accessor values during fallback build (Issue #40, POODR §5b).
Each link is a module responding to
.lookup(owner_name, attr_name, ies_key, **ctx) -> val|nil. The
chain is walked in order; the first non-nil value wins. The five
sequential if val.nil? && ... branches in build! become a loop
over the chain — adding a new lookup source is a one-line module
instead of a new elsif.
Defined Under Namespace
Modules: ClassAttrValues, Cvar, Ies, Ivar, RailsSend
Constant Summary collapse
- DEFAULT_CHAIN =
The default lookup chain, walked in order by build!. Frozen at load time; the
configureseam injects a custom chain for tests. [ Ies, ClassAttrValues, Cvar, Ivar, RailsSend, ].freeze