Class: Unit
- Inherits:
-
Object
- Object
- Unit
- Defined in:
- lib/brewser/ruby-units.rb
Overview
Add convienience method
Instance Method Summary collapse
-
#scalar_in(other) ⇒ Object
returns the scalar value convert to other units.
Instance Method Details
#scalar_in(other) ⇒ Object
returns the scalar value convert to other units
38 39 40 |
# File 'lib/brewser/ruby-units.rb', line 38 def scalar_in(other) to(other).scalar.to_f end |