Method: Numeric#terabytes

Defined in:
activesupport/lib/active_support/core_ext/numeric/bytes.rb

#terabytesObject Also known as: terabyte

Returns the number of bytes equivalent to the terabytes provided.

2.terabytes # => 2_199_023_255_552


47
48
49
# File 'activesupport/lib/active_support/core_ext/numeric/bytes.rb', line 47

def terabytes
  self * TERABYTE
end