Method: Quotient#===
- Defined in:
- lib/m500.rb
#===(other) ⇒ Object
1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 |
# File 'lib/m500.rb', line 1642 def === (other) if other.kind_of?(Quotient) @a == other.a and @b == other.b return 1 elsif other.kind_of?(Quotient) @numerator == other.numerator and @denominator == other.denominator return -1 else return 0 end end |