class PSTree::ProcStruct

Attributes

cmd[R]
pid[R]
ppid[R]
user[R]

Public Class Methods

new(ppid, pid, user, cmd) click to toggle source
# File lib/pstree.rb, line 5
def initialize(ppid, pid, user, cmd)
  @ppid, @pid, @user, @cmd = ppid.to_i, pid.to_i, user, cmd
end

Public Instance Methods

to_s() click to toggle source
# File lib/pstree.rb, line 11
def to_s
 "%05u %s (%s)" % [ pid, cmd, user ]
end