Module: Axiom::Attribute::Comparable
- Includes:
- Function::Predicate::GreaterThan::Methods, Function::Predicate::GreaterThanOrEqualTo::Methods, Function::Predicate::LessThan::Methods, Function::Predicate::LessThanOrEqualTo::Methods
- Included in:
- LengthComparable, ValueComparable
- Defined in:
- lib/axiom/attribute/comparable.rb
Overview
A mixin for attributes that have comparable objects
Instance Method Summary collapse
-
#asc ⇒ Axiom::Relation::Operation::Sorted::Ascending
Sort the attribute in ascending order.
-
#desc ⇒ Axiom::Relation::Operation::Sorted::Descending
Sort the attribute in descending order.
-
#range ⇒ Range
The range for the objects.
Methods included from Function::Predicate::GreaterThan::Methods
Methods included from Function::Predicate::GreaterThanOrEqualTo::Methods
Methods included from Function::Predicate::LessThan::Methods
Methods included from Function::Predicate::LessThanOrEqualTo::Methods
Instance Method Details
#asc ⇒ Axiom::Relation::Operation::Sorted::Ascending
Sort the attribute in ascending order
21 22 23 |
# File 'lib/axiom/attribute/comparable.rb', line 21 def asc Axiom::Relation::Operation::Sorted::Ascending.new(self) end |
#desc ⇒ Axiom::Relation::Operation::Sorted::Descending
Sort the attribute in descending order
33 34 35 |
# File 'lib/axiom/attribute/comparable.rb', line 33 def desc Axiom::Relation::Operation::Sorted::Descending.new(self) end |
#range ⇒ Range
The range for the objects
42 43 44 |
# File 'lib/axiom/attribute/comparable.rb', line 42 def range type.range end |