I had troubles with this, and ended up using []= (which is actually defined in inifile special, just in case you thought I was relying on some standard ruby here.