Class/Module Index [+]

Quicksearch

ActiveSupport::CoreExtensions::Numeric::Bytes

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

Public Instance Methods

byte() click to toggle source
Alias for: bytes
bytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 13
def bytes
  self
end
Also aliased as: byte
exabyte() click to toggle source
Alias for: exabytes
exabytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 43
def exabytes
  self * EXABYTE
end
Also aliased as: exabyte
gigabyte() click to toggle source
Alias for: gigabytes
gigabytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 28
def gigabytes
  self * GIGABYTE
end
Also aliased as: gigabyte
kilobyte() click to toggle source
Alias for: kilobytes
kilobytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 18
def kilobytes
  self * KILOBYTE
end
Also aliased as: kilobyte
megabyte() click to toggle source
Alias for: megabytes
megabytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 23
def megabytes
  self * MEGABYTE
end
Also aliased as: megabyte
petabyte() click to toggle source
Alias for: petabytes
petabytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 38
def petabytes
  self * PETABYTE
end
Also aliased as: petabyte
terabyte() click to toggle source
Alias for: terabytes
terabytes() click to toggle source
# File lib/active_support/core_ext/numeric/bytes.rb, line 33
def terabytes
  self * TERABYTE
end
Also aliased as: terabyte

[Validate]

Generated with the Darkfish Rdoc Generator 2.