Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/stick/units/base.rb

Instance Method Summary collapse

Instance Method Details

#to_unit(converter = nil) ⇒ Object



976
977
978
# File 'lib/stick/units/base.rb', line 976

def to_unit(converter = nil)
  Stick::Units::Unit.new(self, converter)
end

#to_value(converter = nil) ⇒ Object



981
982
983
# File 'lib/stick/units/base.rb', line 981

def to_value(converter = nil)
  Stick::Units::Value.new(self, converter)
end