# File lib/web/forms.rb, line 46 def encode_objects hash newhash = {} hash.each do |k,v| v = ([] << v).flatten v.each { |v| if v.kind_of?(String) newhash[k] = v elsif newhash[k] = Web.escape(v.encode) newhash["#{k}-type"] = v.class.name end } end newhash end