Class: Cooklang::Processors::ElementParser

Inherits:
Object
  • Object
show all
Defined in:
lib/cooklang/processors/element_parser.rb

Class Method Summary collapse

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