lib/cim_profile_types.rb
#
# Append the CimProfNode to the end of the next chain of the current branch.
#
Append the CimProfNode to the end of the next chain of the current branch.
Append the CimProfNode to the end of the next chain of the current branch .
def append_next!(node = nil, &block)
    if @next.empty?
      node = get_node(node)
      block.arity < 1 ? node.instance_eval(&block) : block.call(node) unless block.nil?
      @next.add(node)
      return self
    end
    raise "#{self.class.name}.append_next: cannot append to branch with fork" if @next.length > 1
    @next.first.append_next!(node, &block)
    self
  end
def append_next! ( node = nil , & block ) if @next . empty? node = get_node ( node ) block . arity < 1 ? node . instance_eval ( & block ) : block . call ( node ) unless block . nil? @next . add ( node ) return self end raise "#{self.class.name}.append_next: cannot append to branch with fork" if @next . length > 1 @next . first . append_next! ( node , & block ) self end
Append the CimProfNode to the end of the next chain of the current branch.
Append the CimProfNode to the end of the next chain of the current branch .
node
<not_specific>
block
<not_specific>