class Net::IMAP::ResponseParser
Parses an IMAP server response.
Attributes
Public Class Methods
Source
# File lib/net/imap/response_parser.rb, line 17 def initialize(config: Config.global) @str = nil @pos = nil @lex_state = nil @token = nil @config = Config[config] end
Public Instance Methods
Source
# File lib/net/imap/response_parser.rb, line 31 def parse(str) @str = str @pos = 0 @lex_state = EXPR_BEG @token = nil return response end
Raises ResponseParseError
for unparsable strings.