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

gigabyte()

Alias for gigabytes

kilobyte()

Alias for kilobytes

megabyte()

Alias for megabytes

terabyte()

Alias for terabytes

[Validate]