class String

Public Instance Methods

to_unit() click to toggle source

make a string into a unit @return (see RubyUnits::Unit#initialize)

# File lib/si_units/string.rb, line 4
def to_unit
  SIUnits::Unit.new(self)
end