A simplistic object interface to HTML forms. It is (or should be) designed to facilitate the easy examiniation, filling out, and submission of HTML forms.
html = URI.parse('http://www.google.com.au').read
form = HTML::Form.parse(html).first
# using the method accessors, with automatic name munging
p form.btn_g.value # => 'Google Search'
# using a regexp to get a control/controls
form[/^q/].value = 'what do i want to search for today?'
# controls with the same name are automatically grouped (eg for radiobuttons).
# this uses a group, and a finder method to locate a control by its id.
# => 'hl=en&ie=ISO-8859-1&q=what+do+i+want+to+search+for+today%3F&meta=cr%3DcountryAU'NOTE: this project is no longer maintained, and will be removed soon. There are better alternatives, like the html form handling in mechanize.
These details are provided for information only. No information here is legal advice and should not be used as such.