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