class CTioga2::Graphics::Elements::RedirectingContainer

A Container that redirect most of its trafic to the parents.

Public Instance Methods

each_item(leaf_only = true, recursive = false, tl = true, &blk) click to toggle source
# File lib/ctioga2/graphics/elements/redirecting-container.rb, line 44
def each_item(leaf_only = true, recursive = false, tl = true, &blk)
  if tl
    parent.each_item(leaf_only, recursive, tl, &blk)
  else
    if @elements
      super(leaf_only, recursive, true, &blk)
    end
  end
end