instance method
kilobytes
Ruby on Rails 7.1.6
Since v3.0.20Signature
kilobytes()
Returns the number of bytes equivalent to the kilobytes provided.
2.kilobytes # => 2048
Source
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 23
def kilobytes
self * KILOBYTE
end
Defined in activesupport/lib/active_support/core_ext/numeric/bytes.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Numeric