Class: ITRP::Cmd_set

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_set

Returns a new instance of Cmd_set.



4
5
6
7
8
9
# File 'lib/handlers/set.rb', line 4

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

Instance Method Details

#enter(cmdline) ⇒ Object



11
12
13
14
# File 'lib/handlers/set.rb', line 11

def enter(cmdline)
	print("\nCurrent state\n")
	print_state
end