Class: Neo4j::ActiveNode::Scope::ScopeEvalContext
- Inherits:
-
Object
- Object
- Neo4j::ActiveNode::Scope::ScopeEvalContext
- Defined in:
- lib/neo4j/active_node/scope.rb
Instance Method Summary collapse
- #identity ⇒ Object
-
#initialize(target, query_proxy) ⇒ ScopeEvalContext
constructor
A new instance of ScopeEvalContext.
-
#method_missing(name, *params, &block) ⇒ Object
method_missing is not delegated to super class but to aggregated class rubocop:disable Style/MethodMissingSuper.
Constructor Details
#initialize(target, query_proxy) ⇒ ScopeEvalContext
Returns a new instance of ScopeEvalContext.
102 103 104 105 |
# File 'lib/neo4j/active_node/scope.rb', line 102 def initialize(target, query_proxy) @query_proxy = query_proxy @target = target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *params, &block) ⇒ Object
method_missing is not delegated to super class but to aggregated class rubocop:disable Style/MethodMissingSuper
121 122 123 |
# File 'lib/neo4j/active_node/scope.rb', line 121 def method_missing(name, *params, &block) query_proxy_or_target.public_send(name, *params, &block) end |
Instance Method Details
#identity ⇒ Object
107 108 109 |
# File 'lib/neo4j/active_node/scope.rb', line 107 def identity query_proxy_or_target.identity end |