Method: Numeric#kilobytes

Defined in:
activesupport/lib/active_support/core_ext/numeric/bytes.rb

#kilobytesObject Also known as: kilobyte

Returns the number of bytes equivalent to the kilobytes provided.

2.kilobytes # => 2048


23
24
25
# File 'activesupport/lib/active_support/core_ext/numeric/bytes.rb', line 23

def kilobytes
  self * KILOBYTE
end