class Neo4j::Cypher::Start
Public Class Methods
new(clause_list, rvalue)
click to toggle source
Calls superclass method
Neo4j::Cypher::Clause::new
# File lib/neo4j-cypher/start.rb 6 def initialize(clause_list, rvalue) 7 super(clause_list, :start, EvalContext) 8 @rvalue = rvalue 9 end
Public Instance Methods
entity_list(entity_type, entities)
click to toggle source
# File lib/neo4j-cypher/start.rb 11 def entity_list(entity_type, entities) 12 list = entities.map { |n| n.respond_to?(:neo_id) ? n.neo_id : n }.join(',') 13 "#{entity_type}(#{list})" 14 end
to_cypher()
click to toggle source
# File lib/neo4j-cypher/start.rb 16 def to_cypher 17 "#{var_name}=#{@rvalue}" 18 end