Class: CGIMethods

Inherits:
Object show all
Defined in:
lib/webrat/rack.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.parse_query_parameters(params) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/webrat/rack.rb', line 4

def self.parse_query_parameters(params)
  hash = {}
  params.split('&').each do |p|
    pair = p.split('=')
    hash[pair[0]] = pair[1]
  end
  hash
end