1
module ActiveSupport #:nodoc:
2
module CoreExtensions #:nodoc:
3
module Numeric #:nodoc:
4
# Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes
7
MEGABYTE = KILOBYTE * 1024
8
GIGABYTE = MEGABYTE * 1024
9
TERABYTE = GIGABYTE * 1024
10
PETABYTE = TERABYTE * 1024
11
EXABYTE = PETABYTE * 1024
21
alias :kilobyte :kilobytes
26
alias :megabyte :megabytes
31
alias :gigabyte :gigabytes
36
alias :terabyte :terabytes
41
alias :petabyte :petabytes
46
alias :exabyte :exabytes