Sha256: bb3d1e7ed8d424f424d7ecbe90141ab83c0a2ca061a6a16dcb38155ebfca47bc
Contents?: true
Size: 242 Bytes
Versions: 1
Compression:
Stored size: 242 Bytes
Contents
module Humanize class Kilo < Bytes def to_b Byte.new @value * 1024 end def to_k self end def to_m Mega.new @value / 1024.0 end def to_g Giga.new @value / 1024.0 / 1024 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humanize-bytes-2.1.0 | lib/humanize/kilo.rb |