lib/humanize-bytes/kbyte.rb in humanize-bytes-0.0.1 vs lib/humanize-bytes/kbyte.rb in humanize-bytes-0.0.2
- old
+ new
@@ -11,9 +11,13 @@
def to_b
@value * 1024
end
+ def to_k
+ @value
+ end
+
def to_m
@value / 1024.0
end
def to_g
\ No newline at end of file