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

Methods
B
E
G
K
M
P
T
Constants
KILOBYTE = 1024
 
MEGABYTE = KILOBYTE * 1024
 
GIGABYTE = MEGABYTE * 1024
 
TERABYTE = GIGABYTE * 1024
 
PETABYTE = TERABYTE * 1024
 
EXABYTE = PETABYTE * 1024
 
Instance Public methods
byte()
bytes()
Also aliased as: byte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 13
def bytes
  self
end
exabyte()
exabytes()
Also aliased as: exabyte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 43
def exabytes
  self * EXABYTE
end
gigabyte()
gigabytes()
Also aliased as: gigabyte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 28
def gigabytes
  self * GIGABYTE
end
kilobyte()
kilobytes()
Also aliased as: kilobyte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 18
def kilobytes
  self * KILOBYTE
end
megabyte()
megabytes()
Also aliased as: megabyte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 23
def megabytes
  self * MEGABYTE
end
petabyte()
petabytes()
Also aliased as: petabyte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 38
def petabytes
  self * PETABYTE
end
terabyte()
terabytes()
Also aliased as: terabyte
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 33
def terabytes
  self * TERABYTE
end