Class: NT54::Parser::Visitor
- Inherits:
-
Object
- Object
- NT54::Parser::Visitor
- Defined in:
- lib/nt54/parser/visitor.rb
Direct Known Subclasses
NT54::Parser::Visitors::Dialtone, NT54::Parser::Visitors::WaitForAreaCode, NT54::Parser::Visitors::WaitForAreaCodeCompletion, NT54::Parser::Visitors::WaitForAreaCodeOrMobilePrefixCompletion, NT54::Parser::Visitors::WaitForCountryCodeEnd, NT54::Parser::Visitors::WaitForCountryCodeStart, NT54::Parser::Visitors::WaitForLocalNumber, NT54::Parser::Visitors::WaitForLocalPrefix, NT54::Parser::Visitors::WaitForMobilePrefixCompletion, NT54::Parser::Visitors::WaitForMobilePrefixOrAreaCode, NT54::Parser::Visitors::WaitForPrefix, NT54::Parser::Visitors::WaitForSpecialNumberCompletion
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
- #accept(keypress) ⇒ Object
-
#initialize(number) ⇒ Visitor
constructor
A new instance of Visitor.
- #to_sym ⇒ Object
Constructor Details
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/nt54/parser/visitor.rb', line 5 def number @number end |
Instance Method Details
#accept(keypress) ⇒ Object
12 13 14 15 |
# File 'lib/nt54/parser/visitor.rb', line 12 def accept(keypress) NT54.log.debug "got #{keypress}" if NT54.log return nil end |
#to_sym ⇒ Object
17 18 19 |
# File 'lib/nt54/parser/visitor.rb', line 17 def to_sym self.class.to_s.split("::").last.to_sym end |