Class: Cooklang::Formatters::Hash

Inherits:
Cooklang::Formatter show all
Defined in:
lib/cooklang/formatters/hash.rb

Direct Known Subclasses

Json

Instance Attribute Summary

Attributes inherited from Cooklang::Formatter

#recipe

Instance Method Summary collapse

Methods inherited from Cooklang::Formatter

#initialize, #to_s

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