Method: Quantify::Unit::Base#with_prefixes
- Defined in:
- lib/quantify/unit/base_unit.rb
#with_prefixes(*prefixes) ⇒ Object
Return an array of new unit instances based upon self, together with the prefixes specified by prefixes
507 508 509 |
# File 'lib/quantify/unit/base_unit.rb', line 507 def with_prefixes(*prefixes) [prefixes].map { |prefix| self.with_prefix(prefix) } end |