Class: RVC::RootNode

Inherits:
Object
  • Object
show all
Includes:
InventoryObject
Defined in:
lib/rvc/inventory.rb

Instance Attribute Summary

Attributes included from InventoryObject

#rvc_arc, #rvc_parent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from InventoryObject

#display_info, included, #ls_text, #rvc_children, #rvc_link, #rvc_path, #rvc_path_str, #rvc_relative_path, #rvc_relative_path_str, #traverse_one

Methods included from ObjectWithFields::ClassMethods

#field, #fields

Methods included from ObjectWithFields

#field, #field_properties, #perfmetrics

Constructor Details

#initialize(shell) ⇒ RootNode

Returns a new instance of RootNode.



150
151
152
# File 'lib/rvc/inventory.rb', line 150

def initialize shell
  @shell = shell
end

Class Method Details

.folder?Boolean

Returns:

  • (Boolean)


158
159
160
# File 'lib/rvc/inventory.rb', line 158

def self.folder?
  true
end

Instance Method Details

#childrenObject



154
155
156
# File 'lib/rvc/inventory.rb', line 154

def children
  @shell.connections
end

#pretty_print(pp) ⇒ Object



162
163
164
# File 'lib/rvc/inventory.rb', line 162

def pretty_print pp
  pp.text "Root"
end