Class: Net::IMAP::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/net/imap.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Token

Instance Method Summary collapse

Constructor Details

#initializeResponseParser

Returns a new instance of ResponseParser.



2171
2172
2173
2174
2175
2176
2177
# File 'lib/net/imap.rb', line 2171

def initialize
  @str = nil
  @pos = nil
  @lex_state = nil
  @token = nil
  @flag_symbols = {}
end

Instance Method Details

#parse(str) ⇒ Object



2179
2180
2181
2182
2183
2184
2185
# File 'lib/net/imap.rb', line 2179

def parse(str)
  @str = str
  @pos = 0
  @lex_state = EXPR_BEG
  @token = nil
  return response
end