Class: RVC::RootNode
- Inherits:
-
Object
- Object
- RVC::RootNode
- Includes:
- InventoryObject
- Defined in:
- lib/rvc/inventory.rb
Instance Attribute Summary
Attributes included from InventoryObject
Class Method Summary collapse
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(shell) ⇒ RootNode
constructor
A new instance of RootNode.
- #pretty_print(pp) ⇒ Object
Methods included from InventoryObject
#display_info, included, #ls_text, #rvc_link, #rvc_path, #rvc_path_str, #rvc_relative_path, #rvc_relative_path_str, #traverse_one
Methods included from ObjectWithFields::ClassMethods
Methods included from ObjectWithFields
#field, #field_properties, #perfmetrics
Constructor Details
#initialize(shell) ⇒ RootNode
Returns a new instance of RootNode.
142 143 144 |
# File 'lib/rvc/inventory.rb', line 142 def initialize shell @shell = shell end |
Class Method Details
.folder? ⇒ Boolean
150 151 152 |
# File 'lib/rvc/inventory.rb', line 150 def self.folder? true end |
Instance Method Details
#children ⇒ Object
146 147 148 |
# File 'lib/rvc/inventory.rb', line 146 def children @shell.connections end |
#pretty_print(pp) ⇒ Object
154 155 156 |
# File 'lib/rvc/inventory.rb', line 154 def pretty_print pp pp.text "Root" end |