# File lib/mechanize/form.rb, line 32 def initialize(form_node, elements_node) @form_node, @elements_node = form_node, elements_node @method = (@form_node['method'] || 'GET').upcase @action = Util::html_unescape(@form_node['action']) @name = @form_node['name'] @enctype = @form_node['enctype'] || 'application/x-www-form-urlencoded' @clicked_buttons = [] parse end