# File lib/rack/utils.rb, line 514 def []=(key, value) @size += key.size if key && !@params.key?(key) raise RangeError, 'exceeded available parameter key space' if @size > @limit @params[key] = value end
# File lib/rack/utils.rb, line 520 def key?(key) @params.key?(key) end
# File lib/rack/utils.rb, line 524 def to_params_hash hash = @params hash.keys.each do |key| value = hash[key] if value.kind_of?(self.class) hash[key] = value.to_params_hash elsif value.kind_of?(Array) value.map! {|x| x.kind_of?(self.class) ? x.to_params_hash : x} end end hash end
Generated with the Darkfish Rdoc Generator 2.