class SystemMemory

Base and factory for memory probes

Constants

UNLIMITED

Attributes

is_ecc[RW]
size[RW]
speed[RW]
swap_size[RW]
type[RW]

Public Class Methods

probe() click to toggle source
# File lib/memory.rb, line 15
def self.probe
  case RbConfig::CONFIG['host_os']
  when /linux/
    LinuxSystemMemory.new
  when /darwin/
    MacSystemMemory.new
  when /cygwin|mswin|mingw32|mingw|bccwin|wince|emx/
    WindowsSystemMemory.new
  else
    RbConfig::CONFIG['host_os']
  end
end