Class: NT54::Parser::Visitors::WaitForPrefix
- Inherits:
-
NT54::Parser::Visitor
- Object
- NT54::Parser::Visitor
- NT54::Parser::Visitors::WaitForPrefix
- Defined in:
- lib/nt54/parser/visitors/wait_for_prefix.rb
Instance Attribute Summary
Attributes inherited from NT54::Parser::Visitor
Instance Method Summary collapse
Methods inherited from NT54::Parser::Visitor
Constructor Details
This class inherits a constructor from NT54::Parser::Visitor
Instance Method Details
#accept(keypress) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/nt54/parser/visitors/wait_for_prefix.rb', line 5 def accept(keypress) super if keypress == "1" @number.mobile = true :mobile_prefix_started else @number.local_prefix << keypress :local_prefix_started end end |