Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes

Methods
Constants
KILOBYTE = 1024
MEGABYTE = KILOBYTE * 1024
GIGABYTE = MEGABYTE * 1024
TERABYTE = GIGABYTE * 1024
PETABYTE = TERABYTE * 1024
EXABYTE = PETABYTE * 1024
Public Instance methods
byte()

Alias for bytes

bytes()
This method is also aliased as byte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 13
13:         def bytes
14:           self
15:         end
exabyte()

Alias for exabytes

exabytes()
This method is also aliased as exabyte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 43
43:         def exabytes
44:           self * EXABYTE
45:         end
gigabyte()

Alias for gigabytes

gigabytes()
This method is also aliased as gigabyte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 28
28:         def gigabytes
29:           self * GIGABYTE
30:         end
kilobyte()

Alias for kilobytes

kilobytes()
This method is also aliased as kilobyte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 18
18:         def kilobytes
19:           self * KILOBYTE
20:         end
megabyte()

Alias for megabytes

megabytes()
This method is also aliased as megabyte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 23
23:         def megabytes
24:           self * MEGABYTE
25:         end
petabyte()

Alias for petabytes

petabytes()
This method is also aliased as petabyte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 38
38:         def petabytes
39:           self * PETABYTE
40:         end
terabyte()

Alias for terabytes

terabytes()
This method is also aliased as terabyte
    # File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 33
33:         def terabytes
34:           self * TERABYTE
35:         end