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

- old
+ new

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