Class: Net::IMAP::ResponseParser

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

Overview

:nodoc:

Defined Under Namespace

Classes: Token

Instance Method Summary collapse

Constructor Details

#initializeResponseParser

Returns a new instance of ResponseParser.



9
10
11
12
13
14
# File 'lib/net/imap/response_parser.rb', line 9

def initialize
  @str = nil
  @pos = nil
  @lex_state = nil
  @token = nil
end

Instance Method Details

#parse(str) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/net/imap/response_parser.rb', line 16

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