Class: Sys::Proc
- Inherits:
-
Object
- Object
- Sys::Proc
- Defined in:
- lib/sys/proc.rb
Overview
Operations on current process
Defined Under Namespace
Modules: Concern, System Classes: Helper
Class Method Summary collapse
-
.methods ⇒ Array<Symbol>
Get available methods.
-
.public_methods ⇒ Array<Symbol>
Get available public methods.
Instance Method Summary collapse
-
#initialize(system = nil) ⇒ Proc
constructor
A new instance of Proc.
- #pid ⇒ Object
Methods included from Concern::System
Constructor Details
#initialize(system = nil) ⇒ Proc
Returns a new instance of Proc.
30 31 32 |
# File 'lib/sys/proc.rb', line 30 def initialize(system = nil) @system = system end |
Class Method Details
.methods ⇒ Array<Symbol>
Get available methods
38 39 40 |
# File 'lib/sys/proc.rb', line 38 def methods super() + new.methods end |
.public_methods ⇒ Array<Symbol>
Get available public methods
45 46 47 |
# File 'lib/sys/proc.rb', line 45 def public_methods super() + new.public_methods end |
Instance Method Details
#pid ⇒ Object
50 51 52 |
# File 'lib/sys/proc.rb', line 50 def pid $PROCESS_ID end |