Method: Basic101::BasicNumeric#<=>

Defined in:
lib/basic101/basic_numeric.rb

#<=>(other) ⇒ Object



21
22
23
24
# File 'lib/basic101/basic_numeric.rb', line 21

def <=>(other)
  return nil unless other.is_a?(BasicNumeric)
  value <=> other.value
end