Class: Hangry::DefaultRecipeParser
- Inherits:
-
RecipeParser
- Object
- RecipeParser
- Hangry::DefaultRecipeParser
- Defined in:
- lib/hangry/default_recipe_parser.rb
Instance Attribute Summary
Attributes inherited from RecipeParser
#nokogiri_doc, #nutrition_ast, #recipe, #recipe_ast, #recipe_html
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(html) ⇒ DefaultRecipeParser
constructor
A new instance of DefaultRecipeParser.
- #parse ⇒ Object
Methods inherited from RecipeParser
Constructor Details
#initialize(html) ⇒ DefaultRecipeParser
Returns a new instance of DefaultRecipeParser.
7 8 |
# File 'lib/hangry/default_recipe_parser.rb', line 7 def initialize(html) end |
Class Method Details
.can_parse?(html) ⇒ Boolean
3 4 5 |
# File 'lib/hangry/default_recipe_parser.rb', line 3 def self.can_parse?(html) true end |
Instance Method Details
#parse ⇒ Object
10 11 12 |
# File 'lib/hangry/default_recipe_parser.rb', line 10 def parse Recipe.new end |