Class: Hoss::Metadata::ProcessInfo Private
- Inherits:
-
Object
- Object
- Hoss::Metadata::ProcessInfo
- Defined in:
- lib/hoss/metadata/process_info.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #argv ⇒ Object readonly private
- #pid ⇒ Object readonly private
- #title ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(config) ⇒ ProcessInfo
constructor
private
A new instance of ProcessInfo.
Constructor Details
#initialize(config) ⇒ ProcessInfo
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ProcessInfo.
24 25 26 27 28 29 30 |
# File 'lib/hoss/metadata/process_info.rb', line 24 def initialize(config) @config = config @argv = ARGV @pid = $PID || Process.pid @title = $PROGRAM_NAME end |
Instance Attribute Details
#argv ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/hoss/metadata/process_info.rb', line 32 def argv @argv end |
#pid ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/hoss/metadata/process_info.rb', line 32 def pid @pid end |
#title ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/hoss/metadata/process_info.rb', line 32 def title @title end |