instance method
gigabytes
Ruby on Rails edge
Since v3.0.20Signature
gigabytes()
Returns the number of bytes equivalent to the gigabytes provided.
“‘ 2.gigabytes # => 2_147_483_648 “`
Source
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 47
def gigabytes
self * GIGABYTE
end
Defined in activesupport/lib/active_support/core_ext/numeric/bytes.rb line 47
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Numeric