def set_by_path(path, value, target=@ini)

      #Split the path into its components.
      keys = path.split('/')  

      #Traverse the path, creating any "folders" necessary along the way.
      until keys.one?
        target[keys.first] = {} unless target[keys.first].is_a?(Hash)
        target = target[keys.shift]
      end
     
      #And finally, place the value into the appropriate "leaf".
      target[keys.shift] = value

    end
def set_by_path(path, value, target=@ini)

      #Split the path into its components.
      keys = path.split('/')  

      #Traverse the path, creating any "folders" necessary along the way.
      until keys.one?
        target[keys.first] = {} unless target[keys.first].is_a?(Hash)
        target = target[keys.shift]
      end
     
      #And finally, place the value into the appropriate "leaf".
      target[keys.shift] = value

    end
Sets the value of a key in a hash-of-hashes via a unix-style path.

 path: The path to the target key, in a unix-style path structure. See example below.
 value: The value to put into the key.
 target: The hash to operate on. If target isn't provided, we work with the base INI.

 Example:

   set_by_path('foo/bar/tab', 3, a) would set
   a[foo][bar][tab] = 3; setting foo and bar to