Class: Sys::ProcTree::Tree
- Inherits:
-
Object
- Object
- Sys::ProcTree::Tree
- Defined in:
- lib/sys/proctree/tree.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pid) ⇒ Tree
constructor
A new instance of Tree.
- #pids ⇒ Object
Constructor Details
#initialize(pid) ⇒ Tree
Returns a new instance of Tree.
14 15 16 |
# File 'lib/sys/proctree/tree.rb', line 14 def initialize(pid) @pid = pid end |
Class Method Details
Instance Method Details
#pids ⇒ Object
18 19 20 |
# File 'lib/sys/proctree/tree.rb', line 18 def pids process_status_list.exists?(@pid) ? with_children([@pid]) : [] end |