Returns a Cap2::Process initialized with the given pid, defaulting to the current pid.
16 17 18 19 20
# File 'lib/cap2.rb', line 16 def process(pid = ::Process.pid) check_pid! pid Process.new(pid) end