class Aio::Module::InputStyle::Console::Machine
Attributes
regs[RW]
state[RW]
Public Class Methods
new()
click to toggle source
# File lib/modules/input/style/console.rb, line 13 def initialize @cmd_state = CmdState.new(self) @context_state = ContextState.new(self) @empty_state = EmptyState.new(self) @cmd_context = CmdContext.new @state = @empty_state end
Public Instance Methods
cmd_context()
click to toggle source
# File lib/modules/input/style/console.rb, line 26 def cmd_context @cmd_context end
parse_line(line)
click to toggle source
# File lib/modules/input/style/console.rb, line 42 def parse_line(line) @state.parse_line(line) end
to_cmd_state()
click to toggle source
# File lib/modules/input/style/console.rb, line 30 def to_cmd_state @state = @cmd_state end
to_context_state()
click to toggle source
# File lib/modules/input/style/console.rb, line 34 def to_context_state @state = @context_state end
to_empty_state()
click to toggle source
# File lib/modules/input/style/console.rb, line 38 def to_empty_state @state = @empty_state end