Method: Quantify::Unit::Base#with_prefix

Defined in:
lib/quantify/unit/base_unit.rb

#with_prefix(name_or_symbol) ⇒ Object

Apply a prefix to self. Returns new unit according to the prefixed version of self, complete with modified name, symbol, factor, etc..



500
501
502
# File 'lib/quantify/unit/base_unit.rb', line 500

def with_prefix(name_or_symbol)
  self.class.initialize_prefixed_version(name_or_symbol,self)
end