Class: Net::IMAP::ResponseParser
- Inherits:
-
Object
- Object
- Net::IMAP::ResponseParser
- Defined in:
- lib/net/imap.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Token
Instance Method Summary collapse
-
#initialize ⇒ ResponseParser
constructor
A new instance of ResponseParser.
- #parse(str) ⇒ Object
Constructor Details
#initialize ⇒ ResponseParser
Returns a new instance of ResponseParser.
2168 2169 2170 2171 2172 2173 2174 |
# File 'lib/net/imap.rb', line 2168 def initialize @str = nil @pos = nil @lex_state = nil @token = nil @flag_symbols = {} end |
Instance Method Details
#parse(str) ⇒ Object
2176 2177 2178 2179 2180 2181 2182 |
# File 'lib/net/imap.rb', line 2176 def parse(str) @str = str @pos = 0 @lex_state = EXPR_BEG @token = nil return response end |