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

Instance Method Details

#eAllContainersObject



13
14
15
# File 'lib/puppet/pops/containment.rb', line 13

def eAllContainers
  EAllContainersEnumerator.new(self)
end

#eAllContentsObject

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