Class: PipeOperator::ProxyResolver
- Inherits:
-
Object
- Object
- PipeOperator::ProxyResolver
- Defined in:
- lib/pipe_operator/proxy_resolver.rb
Constant Summary collapse
- AUTOLOAD =
ENV["PIPE_OPERATOR_AUTOLOAD"] == "1"
- FROZEN =
ENV["PIPE_OPERATOR_FROZEN"] == "1"
- REBIND =
ENV["PIPE_OPERATOR_REBIND"] == "1"
Instance Method Summary collapse
-
#initialize(object, resolved = ::Set.new) ⇒ ProxyResolver
constructor
A new instance of ProxyResolver.
- #proxy ⇒ Object
Constructor Details
#initialize(object, resolved = ::Set.new) ⇒ ProxyResolver
Returns a new instance of ProxyResolver.
7 8 9 10 11 |
# File 'lib/pipe_operator/proxy_resolver.rb', line 7 def initialize(object, resolved = ::Set.new) @object = object @resolved = resolved @singleton = ::PipeOperator.singleton(object) end |
Instance Method Details
#proxy ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/pipe_operator/proxy_resolver.rb', line 13 def proxy proxy = find_existing_proxy return proxy if proxy && !REBIND proxy ||= create_proxy rebind_nested_constants proxy end |