class Neo4j::Cypher::MatchStart::RelLeftMatchContext
Public Class Methods
new(match_start, from)
click to toggle source
Calls superclass method
Neo4j::Cypher::MatchStart::MatchContext::new
# File lib/neo4j-cypher/match.rb 187 def initialize(match_start, from) 188 super(match_start) 189 @from = from 190 convert_create_clauses(from) 191 end
Public Instance Methods
-(to)
click to toggle source
# File lib/neo4j-cypher/match.rb 222 def -(to) 223 @match_start.match_list.delete(self) # since it is complete now 224 RelRightMatchContext.new(@match_start, self, @rel_var, to, :both) 225 end
<(to)
click to toggle source
# File lib/neo4j-cypher/match.rb 232 def <(to) 233 @match_start.match_list.delete(self) 234 RelRightMatchContext.new(@match_start, self, @rel_var, to, :incoming) 235 end
>(to)
click to toggle source
# File lib/neo4j-cypher/match.rb 227 def >(to) 228 @match_start.match_list.delete(self) 229 RelRightMatchContext.new(@match_start, self, @rel_var, to, :outgoing) 230 end
match_value()
click to toggle source
# File lib/neo4j-cypher/match.rb 237 def match_value 238 @from.match_value 239 end
set_rel(rel)
click to toggle source
# File lib/neo4j-cypher/match.rb 209 def set_rel(rel) 210 return set_rels(rel) if rel.is_a?(Array) 211 212 if rel.is_a?(Neo4j::Cypher::RelVar::EvalContext) 213 @rel_var = rel.clause 214 elsif rel.respond_to?(:clause) && rel.clause.match_value 215 @rel_var = rel.clause 216 else 217 @rel_var = RelVar.new(clause_list, [rel]) 218 end 219 self 220 end
set_rels(rels)
click to toggle source
# File lib/neo4j-cypher/match.rb 193 def set_rels(rels) 194 if rels.size == 1 195 set_rel(rels.first) 196 else 197 # wrap and maybe join several relationship strings 198 @rel_var = RelVar.new(clause_list, rels) 199 end 200 self 201 end
set_rels?(rels)
click to toggle source
# File lib/neo4j-cypher/match.rb 203 def set_rels?(rels) 204 set_rels(rels) 205 @rel_var.optionally! 206 self 207 end