Google

def []=( *args ) args[-1].parent = self @children[*args[0..-2]] = args[-1] end