Class: Unit

Inherits:
Object
  • Object
show all
Defined in:
lib/brewser/ruby-units.rb

Overview

Add convienience method

Instance Method Summary collapse

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