class Neo4j::Cypher::NodeVar
Represents an unbound node variable used in match statements
Public Class Methods
as_var(clause_list, something)
click to toggle source
# File lib/neo4j-cypher/node_var.rb 13 def self.as_var(clause_list, something) 14 if something.is_a?(Symbol) || something.is_a?(String) 15 NodeVar.new(clause_list, something) 16 elsif something.respond_to?(:clause) 17 something.clause 18 else 19 something 20 end 21 end
new(clause_list, var_name = nil)
click to toggle source
Calls superclass method
Neo4j::Cypher::Clause::new
# File lib/neo4j-cypher/node_var.rb 8 def initialize(clause_list, var_name = nil) 9 super(clause_list, :node_var, EvalContext) 10 @var_name = var_name 11 end
Public Instance Methods
expr()
click to toggle source
# File lib/neo4j-cypher/node_var.rb 23 def expr 24 var_name 25 end
return_value()
click to toggle source
# File lib/neo4j-cypher/node_var.rb 32 def return_value 33 to_cypher 34 end
to_cypher()
click to toggle source
@return [String] a cypher string for this node variable
# File lib/neo4j-cypher/node_var.rb 28 def to_cypher 29 var_name 30 end