class Neo4j::Cypher::RelVar::EvalContext
Public Instance Methods
[](p)
click to toggle source
Calls superclass method
Neo4j::Cypher::Context::Variable#[]
# File lib/neo4j-cypher/rel_var.rb 100 def [](p) 101 # TODO 102 clause.referenced! 103 property = super 104 property.clause.match_value = clause.expr 105 property 106 end
as(name)
click to toggle source
Calls superclass method
Neo4j::Cypher::Context::Alias#as
# File lib/neo4j-cypher/rel_var.rb 108 def as(name) # TODO DRY 109 super 110 super.tap do 111 if clause.match_value == '?' 112 clause.match_value = "#{clause.var_name}?" 113 elsif clause.match_value.include?(':') || clause.match_value.include?('?') 114 clause.match_value = clause.match_value.sub(/[^:\?]*/, clause.var_name.to_s) 115 else 116 clause.match_value = clause.var_name.to_s 117 end 118 end 119 end
null()
click to toggle source
generates a is null
cypher fragment.
# File lib/neo4j-cypher/rel_var.rb 94 def null 95 clause.referenced! 96 Operator.new(clause_list, self, nil, '', :where, " is null").unary! 97 end
rel_type()
click to toggle source
# File lib/neo4j-cypher/rel_var.rb 74 def rel_type 75 Property.new(clause, 'type').to_function! 76 end
where(&block)
click to toggle source
# File lib/neo4j-cypher/rel_var.rb 79 def where(&block) 80 x = block.call(self) 81 clause_list.delete(x) 82 Operator.new(clause_list, x.clause, nil, "").unary! 83 self 84 end
where_not(&block)
click to toggle source
# File lib/neo4j-cypher/rel_var.rb 86 def where_not(&block) 87 x = block.call(self) 88 clause_list.delete(x) 89 Operator.new(clause_list, x.clause, nil, "not").unary! 90 self 91 end