Module: AUOM::Relational
Overview
Mixin to add relational operators
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
private
Perform comparison operation.
Instance Method Details
#<=>(other) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform comparison operation
16 17 18 19 20 |
# File 'lib/auom/relational.rb', line 16 def <=>(other) assert_same_unit(other) scalar <=> other.scalar end |