Class: Lettuce::AllRecipes
Class Method Summary collapse
Methods inherited from Recipe
#author, #duration, #ingredients, #initialize, #instructions, #nutrition, parse, parse_all, #photo, #published, root, #summary, #tags, #title, #yield
Constructor Details
This class inherits a constructor from Lettuce::Recipe
Class Method Details
.can_parse?(doc, url) ⇒ Boolean
5 6 7 |
# File 'lib/lettuce/all_recipes.rb', line 5 def can_parse?(doc, url) URI(url).host == "allrecipes.com" end |