[]=( *args )
public
Set an index
entry. See Array.[]= @param index
the index of the element to set
@param opt either the object to set, or an Integer length @param child if opt is an Integer, this is the child to set @return the
parent (self)
Show source
def []=( *args )
args[-1].parent = self
@children[*args[0..-2]] = args[-1]
end