Module ActiveSupport::CoreExtensions::Numeric::Bytes
In: lib/active_support/core_ext/numeric/bytes.rb

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

Methods

Public Instance methods

byte()

Alias for bytes

exabyte()

Alias for exabytes

gigabyte()

Alias for gigabytes

kilobyte()

Alias for kilobytes

megabyte()

Alias for megabytes

petabyte()

Alias for petabytes

terabyte()

Alias for terabytes

[Validate]