Class: Axiom::Function::Predicate::LessThan

Inherits:
Axiom::Function::Predicate show all
Includes:
Comparable
Defined in:
lib/axiom/function/predicate/less_than.rb

Overview

A predicate representing a less than test between operands

Defined Under Namespace

Modules: Methods

Instance Attribute Summary

Attributes included from Operation::Binary

#left, #right

Class Method Summary collapse

Methods inherited from Axiom::Function::Predicate

type

Methods included from Binary::Invertible

#inverse

Methods included from Binary

#call, #rename, #type

Methods included from Operation::Binary

#initialize

Methods included from Connective::Conjunction::Methods

#and

Methods included from Aliasable

#inheritable_alias

Methods included from Connective::Disjunction::Methods

#or

Methods included from Connective::Negation::Methods

#not

Methods inherited from Axiom::Function

extract_value, rename_attributes, #type

Methods included from Visitable

#accept

Class Method Details

.inverseClass<GreaterThanOrEqualTo>

Return the inverse predicate class

Examples:

LessThan.inverse  # => GreaterThanOrEqualTo

Returns:



31
32
33
# File 'lib/axiom/function/predicate/less_than.rb', line 31

def self.inverse
  GreaterThanOrEqualTo
end

.operationSymbol

Return the LessThan operation

Examples:

LessThan.operation  # => :<

Returns:

  • (Symbol)


19
20
21
# File 'lib/axiom/function/predicate/less_than.rb', line 19

def self.operation
  :<
end

.reverseClass<GreaterThan>

Return the reverse predicate class

Examples:

LessThan.reverse  # => GreaterThan

Returns:



43
44
45
# File 'lib/axiom/function/predicate/less_than.rb', line 43

def self.reverse
  GreaterThan
end