Class: BeerRecipe::HtmlFormatter

Inherits:
RecipeFormatter show all
Defined in:
lib/beer_recipe/html_formatter.rb

Instance Method Summary collapse

Methods inherited from RecipeFormatter

#format, #format_records, #initialize, #parse, #template, #template_path

Constructor Details

This class inherits a constructor from BeerRecipe::RecipeFormatter

Instance Method Details

#outputObject



2
3
4
# File 'lib/beer_recipe/html_formatter.rb', line 2

def output
  puts parse.read
end

#template_fileObject



6
7
8
# File 'lib/beer_recipe/html_formatter.rb', line 6

def template_file
  @options.fetch(:template, template_path('html.erb'))
end