Class: Axiom::Function::Predicate::GreaterThanOrEqualTo

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

Overview

A predicate representing a greater than or equal to 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<LessThan>

Return the inverse predicate class

Examples:

GreaterThanOrEqualTo.inverse  # => LessThan

Returns:



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

def self.inverse
  LessThan
end

.operationSymbol

Return the GreaterThanOrEqualTo operation

Examples:

GreaterThanOrEqualTo.operation  # => :>=

Returns:

  • (Symbol)


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

def self.operation
  :>=
end

.reverseClass<LessThanOrEqualTo>

Return the reverse predicate class

Examples:

GreaterThanOrEqualTo.reverse  # => LessThanOrEqualTo

Returns:



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

def self.reverse
  LessThanOrEqualTo
end