Class: ITRP::Cmd_reset

Inherits:
Cmd
  • Object
show all
Defined in:
lib/handlers/set.rb

Instance Attribute Summary

Attributes inherited from Cmd

#attach_cmd, #children, #enabled_in_state, #trigger

Instance Method Summary collapse

Methods inherited from Cmd

#appstate, #completions, #find_node, #is_root?, #place_node, #print_state, #set_time_window, #treeprint

Constructor Details

#initialize(e) ⇒ Cmd_reset

Returns a new instance of Cmd_reset.



18
19
20
21
22
23
# File 'lib/handlers/set.rb', line 18

def initialize (e)
	super(e)
	@enabled_in_state = :any
	@attach_cmd  = ''
	@trigger = 'reset'
end

Instance Method Details

#enter(cmdline) ⇒ Object



25
26
27
28
29
30
# File 'lib/handlers/set.rb', line 25

def enter(cmdline)
	@appenv.prompt = "iTRP> "
	@appenv.context  = :any  
	print_state
	print("\nReset state OK\n")
end