# File lib/cgikit.rb, line 2596 def run @attr_method = fetch('method') || 'post' # String @attr_enctype = fetch 'enctype' # String @attr_href = fetch('href') || application.baseurl # String @attr_target = fetch 'target' # String @attr_query = fetch('query') || {} # Hash @attr_fileupload = fetch 'fileupload' # true / false unless ( @attr_method.downcase == 'post' ) or \ ( @attr_method.downcase == 'get' ) then @attr_method = 'post' end if @attr_fileupload == true then @attr_enctype = "multipart/form-data" end @attr_query.update state_for_conditional end