Class: BeerRecipe::HtmlFormatter
- Inherits:
-
RecipeFormatter
- Object
- RecipeFormatter
- BeerRecipe::HtmlFormatter
- 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
#output ⇒ Object
2 3 4 |
# File 'lib/beer_recipe/html_formatter.rb', line 2 def output puts parse.read end |
#template_file ⇒ Object
6 7 8 |
# File 'lib/beer_recipe/html_formatter.rb', line 6 def template_file @options.fetch(:template, template_path('html.erb')) end |