Module: Puppet::Pops::Containment
- Included in:
- Binder::Bindings::BindingsModelObject, Model::PopsObject
- Defined in:
- lib/puppet/pops/containment.rb
Defined Under Namespace
Classes: EAllContainersEnumerator, EAllContentsEnumerator
Instance Method Summary collapse
- #eAllContainers ⇒ Object
-
#eAllContents ⇒ Object
Returns Enumerable, thus allowing some_element.eAllContents each {|contained| } This is a depth first enumeration where parent appears before children.
Instance Method Details
#eAllContainers ⇒ Object
13 14 15 |
# File 'lib/puppet/pops/containment.rb', line 13 def eAllContainers EAllContainersEnumerator.new(self) end |
#eAllContents ⇒ Object
Note:
the top-most object itself is not included in the enumeration, only what it contains.
Returns Enumerable, thus allowing some_element.eAllContents each {|contained| } This is a depth first enumeration where parent appears before children.
9 10 11 |
# File 'lib/puppet/pops/containment.rb', line 9 def eAllContents EAllContentsEnumerator.new(self) end |