Method: Numeric#gigabytes
- Defined in:
- activesupport/lib/active_support/core_ext/numeric/bytes.rb
#gigabytes ⇒ Object Also known as: gigabyte
Returns the number of bytes equivalent to the gigabytes provided.
2.gigabytes # => 2_147_483_648
39 40 41 |
# File 'activesupport/lib/active_support/core_ext/numeric/bytes.rb', line 39 def gigabytes self * GIGABYTE end |