Class: Procfs2::Proc
- Inherits:
-
ProcModule
- Object
- ProcItem
- ProcModule
- Procfs2::Proc
- Defined in:
- lib/procfs2/proc.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Attributes inherited from ProcItem
Instance Method Summary collapse
- #_path ⇒ Object
-
#initialize(root:) ⇒ Proc
constructor
A new instance of Proc.
Methods inherited from ProcModule
Methods inherited from ProcItem
#_filename, #_raw_content, build
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Procfs2::ProcItem
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
10 11 12 |
# File 'lib/procfs2/proc.rb', line 10 def root @root end |
Instance Method Details
#_path ⇒ Object
18 19 20 |
# File 'lib/procfs2/proc.rb', line 18 def _path root.to_s end |