Parent

Methods

Fixnum

Some convenient methods for converting bytes to kb, mb, and gb.

Public Instance Methods

fix.to_gb click to toggle source

Returns fix in terms of gigabytes.

# File lib/windows/sys/filesystem.rb, line 391
def to_gb
  self / 1073741824
end
fix.to_kb click to toggle source

Returns fix in terms of kilobytes.

# File lib/windows/sys/filesystem.rb, line 375
def to_kb
  self / 1024
end
fix.to_mb click to toggle source

Returns fix in terms of megabytes.

# File lib/windows/sys/filesystem.rb, line 383
def to_mb
  self / 1048576
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.