Class: Cooklang::Formatters::Hash
- Inherits:
-
Cooklang::Formatter
- Object
- Cooklang::Formatter
- Cooklang::Formatters::Hash
- Defined in:
- lib/cooklang/formatters/hash.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Cooklang::Formatter
Instance Method Summary collapse
Methods inherited from Cooklang::Formatter
Constructor Details
This class inherits a constructor from Cooklang::Formatter
Instance Method Details
#generate(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cooklang/formatters/hash.rb', line 6 def generate(*args) { metadata: , sections: format_sections, ingredients: format_ingredients, cookware: format_cookware, timers: format_timers, inline_quantities: [], data: format_data } end |