Module: Neo4j::Core::Cypher::Comparable

Included in:
Property
Defined in:
lib/neo4j-core/cypher/cypher.rb

Instance Method Summary collapse

Instance Method Details

#<(other) ⇒ Object



40
41
42
# File 'lib/neo4j-core/cypher/cypher.rb', line 40

def <(other)
  ExprOp.new(self, other, '<')
end

#<=(other) ⇒ Object



44
45
46
# File 'lib/neo4j-core/cypher/cypher.rb', line 44

def <=(other)
  ExprOp.new(self, other, '<=')
end

#==(other) ⇒ Object



68
69
70
71
72
73
74
# File 'lib/neo4j-core/cypher/cypher.rb', line 68

def ==(other)
  if other.is_a?(Fixnum) || other.is_a?(String) || other.is_a?(Regexp)
    ExprOp.new(self, other, "=")
  else
    super
  end
end

#=~(other) ⇒ Object



48
49
50
# File 'lib/neo4j-core/cypher/cypher.rb', line 48

def =~(other)
  ExprOp.new(self, other, '=~')
end

#>(other) ⇒ Object



52
53
54
# File 'lib/neo4j-core/cypher/cypher.rb', line 52

def >(other)
  ExprOp.new(self, other, '>')
end

#>=(other) ⇒ Object



56
57
58
# File 'lib/neo4j-core/cypher/cypher.rb', line 56

def >=(other)
  ExprOp.new(self, other, '>=')
end