Class: TwitterCldr::Parsers::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/parsers/parser.rb

Overview

base class, not meant to be instantiated

Instance Method Summary collapse

Instance Method Details

#parse(tokens, options = {}) ⇒ Object



14
15
16
17
18
# File 'lib/twitter_cldr/parsers/parser.rb', line 14

def parse(tokens, options = {})
  @tokens = tokens
  reset
  do_parse(options)
end

#resetObject



20
21
22
# File 'lib/twitter_cldr/parsers/parser.rb', line 20

def reset
  @token_index = 0
end