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



2045
2046
2047
2048
2049
2050
2051
# File 'lib/net/imap.rb', line 2045

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

Instance Method Details

#parse(str) ⇒ Object



2053
2054
2055
2056
2057
2058
2059
# File 'lib/net/imap.rb', line 2053

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