Class: TwitterCldr::Parsers::Parser
- Inherits:
-
Object
- Object
- TwitterCldr::Parsers::Parser
- Defined in:
- lib/twitter_cldr/parsers/parser.rb
Overview
base class, not meant to be instantiated
Direct Known Subclasses
Formatters::Rbnf::RuleParser, UnicodeRegexParser, Transforms::Conversions::Parser, Transforms::Transforms::Parser, Transforms::VariableRule::Parser
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, = {}) @tokens = tokens reset do_parse() end |
#reset ⇒ Object
20 21 22 |
# File 'lib/twitter_cldr/parsers/parser.rb', line 20 def reset @token_index = 0 end |