lib/iron/web/url.rb
# Add a param value (can be called multiply for the same param key)
Add a param value (can be called multiply for the same param key)
Add a param value ( can be called multiply for the same param key )
def add_param(k, v)
    k = k.to_s
    oldval = @params[k]
    if oldval
      @params[k] = oldval.is_a?(Array) ? oldval + [v] :  [oldval, v]
      @params[k].flatten!
    else
      @params[k] = v
    end
  end
def add_param ( k , v ) k = k . to_s oldval = @params [ k ] if oldval @params [ k ] = oldval . is_a? ( Array ) ? oldval + [ v ] : [ oldval , v ] @params [ k ] . flatten! else @params [ k ] = v end end
Add a param value (can be called multiply for the same param key)
Add a param value ( can be called multiply for the same param key )
k
v