class PsProcess
Public Instance Methods
alive?()
click to toggle source
# File lib/ps-ruby/ps-ruby.rb, line 8 def alive? PS.get_all_processes.pick_attr("PID").include?(self["PID"]) end
kill!()
click to toggle source
# File lib/ps-ruby/ps-ruby.rb, line 4 def kill! `kill #{self["PID"]}` end