Class: ITRP::Cmd_root
Instance Attribute Summary
Attributes inherited from Cmd
#attach_cmd, #children, #enabled_in_state, #trigger
Instance Method Summary collapse
- #enter(cmdline) ⇒ Object
-
#initialize(e) ⇒ Cmd_root
constructor
A new instance of Cmd_root.
- #notfound(cmdline) ⇒ Object
Methods inherited from Cmd
#appstate, #completions, #find_node, #is_root?, #place_node, #print_state, #set_time_window, #treeprint
Constructor Details
#initialize(e) ⇒ Cmd_root
Returns a new instance of Cmd_root.
5 6 7 8 9 10 |
# File 'lib/cmd_root.rb', line 5 def initialize (e) super(e) @enabled_in_state = :any @attach_cmd = '' @trigger = '' end |
Instance Method Details
#enter(cmdline) ⇒ Object
13 14 |
# File 'lib/cmd_root.rb', line 13 def enter(cmdline) end |
#notfound(cmdline) ⇒ Object
16 17 18 |
# File 'lib/cmd_root.rb', line 16 def notfound(cmdline) print("#{cmdline} : not found\n"); end |