Module: Axiom::Function::Comparable::ClassMethods

Defined in:
lib/axiom/function/comparable.rb

Instance Method Summary collapse

Instance Method Details

#call(left, right) ⇒ Object

Evaluate the values using the ruby operation

Examples:

function.call(left, right)  # => true or false

Parameters:

  • left (Object)
  • right (Object)

Returns:

  • (Object)


37
38
39
# File 'lib/axiom/function/comparable.rb', line 37

def call(left, right)
  left.public_send(operation, right)
end