Class: Application

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Taxplorer::View

#table_view, #tree_view

Methods included from Taxplorer::Find

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

Methods included from Taxplorer::Parse

#load_taxonomy

Methods included from Taxplorer::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.



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

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

Instance Attribute Details

#recordsObject (readonly)

Returns the value of attribute records.



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

def records
  @records
end

#runObject (readonly)

Returns the value of attribute run.



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

def run
  @run
end