module Neo4j::Cypher::Context::Variable

Public Instance Methods

[](prop_name) click to toggle source
    # File lib/neo4j-cypher/context.rb
279 def [](prop_name)
280   Property.new(clause, prop_name).eval_context
281 end
[]=(p, value) click to toggle source
    # File lib/neo4j-cypher/context.rb
294 def []=(p, value)
295   left = Property.new(clause, p).eval_context
296   Operator.new(clause_list, left, value, "=", :set)
297   self
298 end
del() click to toggle source
    # File lib/neo4j-cypher/context.rb
310 def del
311   Delete.new(clause_list, clause)
312   self
313 end
del_label(*labels) click to toggle source
    # File lib/neo4j-cypher/context.rb
305 def del_label(*labels)
306   Label.new(clause_list, clause, labels, :remove)
307   self
308 end
is_a?(klass) click to toggle source

Can be used instead of [_classname] == klass

Calls superclass method
    # File lib/neo4j-cypher/context.rb
316 def is_a?(klass)
317   return super if klass.class != Class || !klass.respond_to?(:_load_wrapper)
318   self[:_classname] == klass.to_s
319 end
neo_id() click to toggle source

generates a ID cypher fragment.

    # File lib/neo4j-cypher/context.rb
284 def neo_id
285   Property.new(clause, 'ID').to_function!
286 end
property?(p) click to toggle source

generates a has cypher fragment.

    # File lib/neo4j-cypher/context.rb
289 def property?(p)
290   p = Property.new(clause, p)
291   Operator.new(clause_list, p, nil, "has").unary!
292 end
set_label(*labels) click to toggle source
    # File lib/neo4j-cypher/context.rb
300 def set_label(*labels)
301   Label.new(clause_list, clause, labels, :set)
302   self
303 end
where(&block) click to toggle source
    # File lib/neo4j-cypher/context.rb
269 def where(&block)
270   Where.new(clause_list, self, &block)
271   self
272 end
where_not(&block) click to toggle source
    # File lib/neo4j-cypher/context.rb
274 def where_not(&block)
275   Where.new(clause_list, self, &block).neg!
276   self
277 end