Module: Puppet::Pops::Containment

Included in:
Model::PopsObject
Defined in:
lib/puppet/pops/containment.rb

Overview

FIXME: This module should be updated when a newer version of RGen (>0.6.2) adds required meta model “e-method” supports.

Defined Under Namespace

Classes: EAllContentsEnumerator

Instance Method Summary collapse

Instance Method Details

#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.



8
9
10
# File 'lib/puppet/pops/containment.rb', line 8

def eAllContents
  EAllContentsEnumerator.new(self)
end