It's just redundant having to initialize the child element all the time. What I meant was this:
@parent = Hash.new{ |h,k| h[k] = Hash.new(&h.default_proc) }
if I try to create another multi-dimensional node, I try coding:
@parent[:child][some_field] = "Some example data..."
I am always getting this error:
undefined method `[]=' for nil:NilClass (NoMethodError)
Do you have any ideas how to solve this?