Construct a unit from an array.
Construct a unit from an array
Examples:
[1, ‘mm’].to_unit => RubyUnits::Unit.new(“1 mm”)
Parameters:
convert to same units as passed
Returns:
6 7 8
# File 'lib/ruby_units/array.rb', line 6 def to_unit(other = nil) other ? RubyUnits::Unit.new(self).convert_to(other) : RubyUnits::Unit.new(self) end