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_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.



142
143
144
# File 'lib/rvc/inventory.rb', line 142

def initialize shell
  @shell = shell
end

Class Method Details

.folder?Boolean

Returns:

  • (Boolean)


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

def self.folder?
  true
end

Instance Method Details

#childrenObject



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