Method: Numeric#coerce

Defined in:
lib/m500.rb

#coerce(other) ⇒ Object



255
256
257
258
259
260
261
# File 'lib/m500.rb', line 255

def coerce(other)
  if Natural === other or Counting === other or Zahlen === other  or Quotient === other or Fraction === other
    [other.to_i,self]
  else
    super
  end
end