instance method
kilobytes
Ruby on Rails edge
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 27
def kilobytes
self * KILOBYTE
end
Defined in activesupport/lib/active_support/core_ext/numeric/bytes.rb line 27
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Numeric