# File rinject.rb, line 136 def parse(string) # split string to array, where Regexp matches return if string.nil? string.split(/,(?=[^;,]*=)|,$/).collect do |c| # split cookie name/value from parameters and then split name/value-pair into name and value name, value = c.split(/;/)[0].split(/=/,2) self.add(name,value) end end