method
match
match(*args)
private
Hide source
# File lib/net/imap.rb, line 3084 def match(*args) token = lookahead unless args.include?(token.symbol) parse_error('unexpected token %s (expected %s)', token.symbol.id2name, args.collect {|i| i.id2name}.join(" or ")) end shift_token return token end