Method: Cap2.process

Defined in:
lib/cap2.rb

.process(pid = ::Process.pid) ⇒ Object

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