Module: Neo4j::Cypher::Context::PredicateMethods

Defined in:
lib/neo4j-cypher/context.rb

Instance Method Summary collapse

Instance Method Details

#all?(&block) ⇒ Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/neo4j-cypher/context.rb', line 101

def all?(&block)
  Predicate.new(clause_list, 'all', self, &block).eval_context
end

#any?(&block) ⇒ Boolean

Returns:

  • (Boolean)


105
106
107
# File 'lib/neo4j-cypher/context.rb', line 105

def any?(&block)
  Predicate.new(clause_list, 'any', self, &block).eval_context
end

#none?(&block) ⇒ Boolean

Returns:

  • (Boolean)


109
110
111
# File 'lib/neo4j-cypher/context.rb', line 109

def none?(&block)
  Predicate.new(clause_list, 'none', self, &block).eval_context
end

#single?(&block) ⇒ Boolean

Returns:

  • (Boolean)


113
114
115
# File 'lib/neo4j-cypher/context.rb', line 113

def single?(&block)
  Predicate.new(clause_list, 'single', self, &block).eval_context
end