Method: SizeConverter::SI.convert
- Defined in:
- lib/riel/size_converter.rb
.convert(size, decimal_places = 1) ⇒ Object
returns a string representation of the size. Note that K, G, M are gigabytes, etc.
40 41 42 |
# File 'lib/riel/size_converter.rb', line 40 def self.convert size, decimal_places = 1 SizeConverter._convert CONVERSIONS, 2, size, decimal_places end |