lib/humanize/kilo.rb in humanize-bytes-2.1.0 vs lib/humanize/kilo.rb in humanize-bytes-2.2.0
- old
+ new
@@ -13,7 +13,27 @@
end
def to_g
Giga.new @value / 1024.0 / 1024
end
+
+ def to_t
+ Tera.new @value / 1024.0 / 1024.0 / 1024.0
+ end
+
+ def to_p
+ Peta.new @value / 1024.0 / 1024.0 / 1024.0 / 1024.0
+ end
+
+ def to_e
+ Exa.new @value / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0
+ end
+
+ def to_z
+ Zetta.new @value / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0
+ end
+
+ def to_y
+ Yotta.new @value / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0
+ end
end
end
\ No newline at end of file