class Total::Mem

Memory specifics.

def bytes

Get it in bytes.
def bytes
  target.memory
end

def target

Target object to calculate memory size.
def target
  return Total::OSX.new if RUBY_PLATFORM.include?('darwin')
  return Total::Linux.new if RUBY_PLATFORM.include?('linux')
  return Total::FreeBSD.new if RUBY_PLATFORM.include?('freebsd')
  raise CantDetect, "Can't detect operating system: #{RUBY_PLATFORM}"
end