OpenStruct functionality for Page objects
Reported by chris (at chriskite) | June 10th, 2009 @ 04:56 PM
It would be great to be able to do this:
anemone.on_every_page do |page|
page.h1 = (page.body).at('h1').inner_html
end
Probably this can be accomplished by including OpenStruct in Page, and throwing in a little hpricot magic.
Comments and changes to this ticket
-
chris (at chriskite) June 13th, 2009 @ 02:02 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Anemone is a Ruby library that makes it quick and painless to write programs that spider a website. It provides a simple DSL for performing actions on every page of a site, skipping certain URLs, and calculating the shortest path to a given page on a site.