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

Methods
Public Instance methods
byte()

Alias for bytes

bytes()
This method is also aliased as byte
   # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 6
6:         def bytes
7:           self
8:         end
exabyte()

Alias for exabytes

exabytes()
This method is also aliased as exabyte
    # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 36
36:         def exabytes
37:           self * 1024.petabytes
38:         end
gigabyte()

Alias for gigabytes

gigabytes()
This method is also aliased as gigabyte
    # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 21
21:         def gigabytes
22:           self * 1024.megabytes 
23:         end
kilobyte()

Alias for kilobytes

kilobytes()
This method is also aliased as kilobyte
    # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 11
11:         def kilobytes
12:           self * 1024
13:         end
megabyte()

Alias for megabytes

megabytes()
This method is also aliased as megabyte
    # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 16
16:         def megabytes
17:           self * 1024.kilobytes
18:         end
petabyte()

Alias for petabytes

petabytes()
This method is also aliased as petabyte
    # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 31
31:         def petabytes
32:           self * 1024.terabytes
33:         end
terabyte()

Alias for terabytes

terabytes()
This method is also aliased as terabyte
    # File vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 26
26:         def terabytes
27:           self * 1024.gigabytes
28:         end