class Neo4j::Cypher::Where
Public Class Methods
new(clause_list, context, where_statement = nil, &block)
click to toggle source
Calls superclass method
Neo4j::Cypher::Clause::new
# File lib/neo4j-cypher/where.rb 6 def initialize(clause_list, context, where_statement = nil, &block) 7 super(clause_list, :where) 8 9 if where_statement 10 @where_statement = where_statement 11 else 12 clause_list.push 13 RootClause::EvalContext.new(context).instance_exec(context, &block) 14 @where_statement = clause_list.to_cypher 15 clause_list.pop 16 end 17 18 end
Public Instance Methods
neg!()
click to toggle source
# File lib/neo4j-cypher/where.rb 20 def neg! 21 @where_statement = "not(#{@where_statement})" 22 end
to_cypher()
click to toggle source
# File lib/neo4j-cypher/where.rb 24 def to_cypher 25 @where_statement 26 end