Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
detail_page_extractor = lambda do product_details 'Product Details' end cameras = Scrubyt::Extractor.define do fetch 'http://www.amazon.com' fill_textfield 'field-keywords', 'canon eos' select_option 'url', 'Electronics' submit camera do item_name('Canon Digital Rebel XTi 10.1MP Digital SLR Camera with EF-S 18-55mm f/3.5-5.6 Lens (Black)', 'Canon EOS 30D 8.2MP Digital SLR Camera Kit with EF-S 18-55mm f/3.5-5.6 Lens') do stuff :references => detail_page_extractor end price '$782.33', '$1,189.95' end end cameras.to_xml.write($stdout, 1)
From the Design Piracy series on my blog: