Top Level Namespace

Defined Under Namespace

Modules: Unitwise

Instance Method Summary collapse

Instance Method Details

#Unitwise(*args) ⇒ Unitwise::Measurement

Measurement initializer shorthand. Use this to instantiate new measurements.

Examples:

Unitwise(20, 'mile') # => #<Unitwise::Measurement 20 mile>
Unitwise('km') # => #<Unitwise::Measurement 1 km>


68
69
70
# File 'lib/unitwise.rb', line 68

def Unitwise(*args)
  Unitwise::Measurement.new(*args)
end