Methods
- byte
- bytes
- exabyte
- exabytes
- gigabyte
- gigabytes
- kilobyte
- kilobytes
- megabyte
- megabytes
- petabyte
- petabytes
- terabyte
- terabytes
Constants
KILOBYTE | = | 1024 |
MEGABYTE | = | KILOBYTE * 1024 |
GIGABYTE | = | MEGABYTE * 1024 |
TERABYTE | = | GIGABYTE * 1024 |
PETABYTE | = | TERABYTE * 1024 |
EXABYTE | = | PETABYTE * 1024 |
Public Instance methods
Alias for bytes
This method is also aliased as
byte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 13 13: def bytes 14: self 15: end
Alias for exabytes
This method is also aliased as
exabyte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 43 43: def exabytes 44: self * EXABYTE 45: end
Alias for gigabytes
This method is also aliased as
gigabyte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 28 28: def gigabytes 29: self * GIGABYTE 30: end
Alias for kilobytes
This method is also aliased as
kilobyte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 18 18: def kilobytes 19: self * KILOBYTE 20: end
Alias for megabytes
This method is also aliased as
megabyte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 23 23: def megabytes 24: self * MEGABYTE 25: end
Alias for petabytes
This method is also aliased as
petabyte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 38 38: def petabytes 39: self * PETABYTE 40: end
Alias for terabytes
This method is also aliased as
terabyte
[ show source ]
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 33 33: def terabytes 34: self * TERABYTE 35: end