Libraries
»
measurement
(0.2.5)
»
Index
»
Measurement
»
Unit
»
#from
Method: Measurement::Unit#from
Defined in:
lib/measurement/unit.rb
#
from
(amount) ⇒
Object
26 27 28
# File 'lib/measurement/unit.rb', line 26
def
from
(
amount
)
amount
.
to_f
*
@scale
end