Class: Cooklang::Processors::ElementParser
- Inherits:
-
Object
- Object
- Cooklang::Processors::ElementParser
- Defined in:
- lib/cooklang/processors/element_parser.rb
Class Method Summary collapse
- .parse_cookware(tokens, start_index) ⇒ Object
- .parse_ingredient(tokens, start_index) ⇒ Object
- .parse_timer(tokens, start_index) ⇒ Object
Class Method Details
.parse_cookware(tokens, start_index) ⇒ Object
11 12 13 |
# File 'lib/cooklang/processors/element_parser.rb', line 11 def parse_cookware(tokens, start_index) parse_with_parser(tokens, start_index, Parsers::CookwareParser) end |
.parse_ingredient(tokens, start_index) ⇒ Object
7 8 9 |
# File 'lib/cooklang/processors/element_parser.rb', line 7 def parse_ingredient(tokens, start_index) parse_with_parser(tokens, start_index, Parsers::IngredientParser) end |
.parse_timer(tokens, start_index) ⇒ Object
15 16 17 |
# File 'lib/cooklang/processors/element_parser.rb', line 15 def parse_timer(tokens, start_index) parse_with_parser(tokens, start_index, Parsers::TimerParser) end |