Method: Numeric#megabytes
- Defined in:
- activesupport/lib/active_support/core_ext/numeric/bytes.rb
#megabytes ⇒ Object Also known as: megabyte
Returns the number of bytes equivalent to the megabytes provided.
2.megabytes # => 2_097_152
31 32 33 |
# File 'activesupport/lib/active_support/core_ext/numeric/bytes.rb', line 31 def megabytes self * MEGABYTE end |