Class: Neo4j::Cypher::NodeVar::EvalContext

Inherits:
Object
  • Object
show all
Includes:
Aggregate, Alias, Matchable, Context, Returnable, Sortable, Variable
Defined in:
lib/neo4j-cypher/node_var.rb

Instance Attribute Summary

Attributes included from Context

#clause

Instance Method Summary collapse

Methods included from Context

#clause_list

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