Method: String#merge_param

Defined in:
lib/nerdz/rebinds.rb

#merge_param(par) ⇒ Object



47
48
49
50
51
# File 'lib/nerdz/rebinds.rb', line 47

def merge_param(par)
  uri = URI.parse(self)
  uri.query = Hash.from_param(uri.query).merge(par).to_param
  uri.to_s
end