lib/humanize-bytes/kbyte.rb in humanize-bytes-0.1.0 vs lib/humanize-bytes/kbyte.rb in humanize-bytes-1.0.0

- old
+ new

@@ -8,22 +8,22 @@ def value @value end def to_b - @value * 1024 + Byte.new @value * 1024 end def to_k - @value + self end def to_m - @value / 1024.0 + Mega.new @value / 1024.0 end def to_g - @value / 1024.0 / 1024 + Giga.new @value / 1024.0 / 1024 end def to_s @value.instance_of?(Float) ? formatted_float + ' kilo bytes' : @value.to_s + ' kilo bytes' end \ No newline at end of file