Class: RVC::RootNode

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from InventoryObject

#display_info, included, #ls_text, #traverse_one

Class Method Details

.folder?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/rvc/inventory.rb', line 100

def self.folder?
  true
end

Instance Method Details

#childrenObject



92
93
94
# File 'lib/rvc/inventory.rb', line 92

def children
  $shell.connections
end

#parentObject



96
97
98
# File 'lib/rvc/inventory.rb', line 96

def parent
  nil
end

#pretty_print(pp) ⇒ Object



104
105
106
# File 'lib/rvc/inventory.rb', line 104

def pretty_print pp
  pp.text "Root"
end