Class: Taxplorer::Application

Inherits:
Object
  • Object
show all
Includes:
Command, Find, Parse, View
Defined in:
lib/taxplorer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from View

#build_tree, #tree_view

Methods included from Find

#get_children, #get_info, #get_parent, #get_section, #get_sections

Methods included from Parse

#load_taxonomy

Methods included from Command

#child_nodes_prompt, #clear, #load_shell, #menu_prompt, #node_commands, #quit, #section_prompt, #welcome_prompt

Constructor Details

#initializeApplication

Returns a new instance of Application.



20
21
22
23
24
25
26
27
# File 'lib/taxplorer.rb', line 20

def initialize
  @nodes = []
  @records ||= Hash.new
  @records["sections"] ||= []
  @records["elements"] ||= []
  @run = true
  load_shell
end

Instance Attribute Details

#recordsObject (readonly)

Returns the value of attribute records.



18
19
20
# File 'lib/taxplorer.rb', line 18

def records
  @records
end

#runObject (readonly)

Returns the value of attribute run.



18
19
20
# File 'lib/taxplorer.rb', line 18

def run
  @run
end