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