module Neo4j::Cypher::Context::MathFunctions

Public Instance Methods

_add_math_func(name, value) click to toggle source

@private

   # File lib/neo4j-cypher/context.rb
49 def _add_math_func(name, value)
50   value ||= clause.to_cypher
51   clause_list.delete(clause)
52   ReturnItem.new(clause_list, "#{name}(#{value})").eval_context
53 end
abs(value=nil) click to toggle source
   # File lib/neo4j-cypher/context.rb
32 def abs(value=nil)
33   _add_math_func(:abs, value)
34 end
round(value=nil) click to toggle source
   # File lib/neo4j-cypher/context.rb
40 def round(value=nil)
41   _add_math_func(:round, value)
42 end
sign(value=nil) click to toggle source
   # File lib/neo4j-cypher/context.rb
44 def sign(value=nil)
45   _add_math_func(:sign, value)
46 end
sqrt(value=nil) click to toggle source
   # File lib/neo4j-cypher/context.rb
36 def sqrt(value=nil)
37   _add_math_func(:sqrt, value)
38 end