class Sys::ProcTree::ProcessStatusList

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/sys/proctree/process_status_list.rb, line 6
def initialize
  super(::Sys::ProcTable.ps)
end

Public Instance Methods

exists?(pid) click to toggle source
# File lib/sys/proctree/process_status_list.rb, line 10
def exists?(pid)
  !!find { |proc| proc.pid == pid }
end