lib/ripe/blocks/multi_block.rb
def prune(protect, depend)
        if !protect
          @blocks = @blocks.map { |block| block.prune(protect, depend) }.compact
          case @blocks.length
          when 0; nil
          when 1; @blocks.first
          else;   self
          end
        else
          self
        end
      end
##
# (see Block#prune)
#
# Unless the block is protected, attempt to prune all children blocks.
# If all blocks are pruned, return nothing.  If a single block remains,
# return that block.  If more than one block remains, return the current
# {MultiBlock}.
Unless the block is protected, attempt to prune all children blocks.
If all blocks are pruned, return nothing.  If a single block remains,
return that block.  If more than one block remains, return the current
{MultiBlock}.
Unless the block is protected attempt to prune all children blocks . If all blocks are pruned return nothing . If a single block remains return that block . If more than one block remains return the current { MultiBlock } .
def prune(protect, depend)
        if !protect
          @blocks = @blocks.map { |block| block.prune(protect, depend) }.compact
          case @blocks.length
          when 0; nil
          when 1; @blocks.first
          else;   self
          end
        else
          self
        end
      end
def prune ( protect , depend ) if ! protect @blocks = @blocks . map { | block | block . prune ( protect , depend ) } . compact case @blocks . length when 0 ; nil when 1 ; @blocks . first else ; self end else self end end
(see Block#prune)
Unless the block is protected, attempt to prune all children blocks.
( see Block#prune ) Unless the block is protected attempt to prune all children blocks .
protect
depend