Module: Puppet::Pops::Containment Private

Included in:
Binder::Bindings::BindingsModelObject, Model::PopsObject
Defined in:
lib/puppet/pops/containment.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: EAllContainersEnumerator, EAllContentsEnumerator

Instance Method Summary collapse

Instance Method Details

#eAllContainersObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def eAllContainers
  EAllContainersEnumerator.new(self)
end

#eAllContentsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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