class Object

Constants

BYTE_UNITS2

Public Instance Methods

nice_bytes(n) click to toggle source
# File lib/ridoku/base.rb, line 714
def nice_bytes(n)
  unit = BYTE_UNITS2.detect{ |u| n > u[0] }
  "#{n/unit[0]} #{unit[1]}"
end