Class: Docile::ChainingFallbackContextProxy Private
- Inherits:
-
FallbackContextProxy
- Object
- FallbackContextProxy
- Docile::ChainingFallbackContextProxy
- Defined in:
- lib/docile/chaining_fallback_context_proxy.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Operates in the same manner as FallbackContextProxy, but replacing
the primary receiver
object with the result of each proxied method.
This is useful for implementing DSL evaluation for immutable context objects.
rubocop:disable Style/MissingRespondToMissing
Constant Summary
Constants inherited from FallbackContextProxy
FallbackContextProxy::NON_FALLBACK_METHODS, FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES, FallbackContextProxy::NON_PROXIED_METHODS
Instance Method Summary collapse
-
#method_missing(method, *args, &block) ⇒ Object
private
Proxy methods as in FallbackContextProxy#method_missing, replacing
receiver
with the returned value.
Methods inherited from FallbackContextProxy
#initialize, #instance_variables
Constructor Details
This class inherits a constructor from Docile::FallbackContextProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
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.
Proxy methods as in FallbackContextProxy#method_missing, replacing
receiver
with the returned value.
20 21 22 |
# File 'lib/docile/chaining_fallback_context_proxy.rb', line 20 def method_missing(method, *args, &block) @__receiver__ = super end |