Class: Fixnum

Inherits:
Object show all
Defined in:
lib/rails_units/fixnum.rb

Instance Method Summary collapse

Instance Method Details

#quo_with_units(other) ⇒ Object Also known as: quo, /



8
9
10
11
12
13
14
15
# File 'lib/rails_units/fixnum.rb', line 8

def quo_with_units(other)
  case other
  when Unit
    self * other.inverse
  else
    quo_without_units(other)
  end
end