module SizeUnits
Constants
- VERSION
Public Instance Methods
bytes()
click to toggle source
# File lib/size_units/units.rb, line 3 def bytes() self end
gigabytes()
click to toggle source
# File lib/size_units/units.rb, line 6 def gigabytes() 1024**3 * self end
kilobytes()
click to toggle source
# File lib/size_units/units.rb, line 4 def kilobytes() 1024 * self end
megabytes()
click to toggle source
# File lib/size_units/units.rb, line 5 def megabytes() 1024**2 * self end
terabytes()
click to toggle source
# File lib/size_units/units.rb, line 7 def terabytes() 1024**4 * self end