I ran into a problem where i was parsing a file that had multiple entries using the same key (specifically,php.ini and:
extension = "something.so"
extension = "somethingelse.so"
ini.rb handled it by clobbering the first with the second, so i modified it to take this into account and create an
array of values when it encounters this scenario. When writing out it simple writes out a new key/value pair for each
element in the array.
A little odd perhaps that an ini file would have multiple entries with the same key, but the file i needed to parse
did :) |