Class: Neo4j::Cypher::NodeVar::EvalContext
- Inherits:
-
Object
- Object
- Neo4j::Cypher::NodeVar::EvalContext
- Includes:
- Aggregate, Alias, Matchable, Context, Returnable, Sortable, Variable
- Defined in:
- lib/neo4j-cypher/node_var.rb
Instance Attribute Summary
Attributes included from Context
Instance Method Summary collapse
- #[](p) ⇒ Object
-
#initialize(clause) ⇒ EvalContext
constructor
A new instance of EvalContext.
- #new(props = nil, *labels) ⇒ Object
Methods included from Context
Constructor Details
#initialize(clause) ⇒ EvalContext
Returns a new instance of EvalContext.
46 47 48 |
# File 'lib/neo4j-cypher/node_var.rb', line 46 def initialize(clause) super end |
Instance Method Details
#[](p) ⇒ Object
55 56 57 58 59 |
# File 'lib/neo4j-cypher/node_var.rb', line 55 def [](p) property = Property.new(clause, p) property.match_value = clause.var_name property.eval_context end |
#new(props = nil, *labels) ⇒ Object
50 51 52 53 |
# File 'lib/neo4j-cypher/node_var.rb', line 50 def new(props = nil, *labels) clause.clause_list.delete(clause) Create.new(clause_list, props, labels).eval_context end |