module Majic::SizeUnits
Constants
- Units
Public Instance Methods
bytes()
click to toggle source
# File library/majic/units.rb, line 7 def bytes; self end
gigabytes()
click to toggle source
# File library/majic/units.rb, line 10 def gigabytes; self * 1024 ** 3 end
kilobytes()
click to toggle source
# File library/majic/units.rb, line 8 def kilobytes; self * 1024 end
megabytes()
click to toggle source
# File library/majic/units.rb, line 9 def megabytes; self * 1024 ** 2 end
terabytes()
click to toggle source
# File library/majic/units.rb, line 11 def terabytes; self * 1024 ** 4 end