Help for this page

Select Code to Download


  1. or download this
    def add_child( Hash options is optional, Tree *children )
        # Subroutine body here
    end
    
  2. or download this
    def add_child( *children )
        options = children[0].is_a( 'Hash' ) ? children.shift : Hash.new;
    ...
    
        # Resume regular processing here
    end