Class: CTioga2::Graphics::Elements::RedirectingContainer
- Inherits:
-
Container
- Object
- TiogaElement
- Container
- CTioga2::Graphics::Elements::RedirectingContainer
- Extended by:
- Forwardable
- Defined in:
- lib/ctioga2/graphics/elements/redirecting-container.rb
Overview
A Container that redirect most of its trafic to the parents.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Container
#elements, #gp_cache, #legend_area, #legend_item_target, #legend_storage, #root_object, #subframe
Attributes inherited from TiogaElement
#clipped, #depth, #location, #parent
Instance Method Summary collapse
Methods inherited from Container
#actual_subframe, #add_element, #add_legend_item, #do, #enter_legend_subcontainer, #initialize, #size
Methods inherited from TiogaElement
Methods included from Log
context, debug, error, fatal, #format_exception, #identify, info, init_logger, log_to, logger, set_level, #spawn, warn
Constructor Details
This class inherits a constructor from CTioga2::Graphics::Elements::Container
Instance Method Details
#each_item(leaf_only = true, recursive = false, tl = true, &blk) ⇒ Object
44 45 46 47 48 49 50 51 52 |
# 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 |