Class: Puppet::Pops::Model::ResourceTypeDefinition
- Inherits:
-
NamedDefinition
- Object
- PopsObject
- Positioned
- Expression
- Definition
- NamedDefinition
- Puppet::Pops::Model::ResourceTypeDefinition
- Defined in:
- lib/puppet/pops/model/ast.rb
Instance Attribute Summary
Attributes inherited from NamedDefinition
Attributes inherited from Positioned
Attributes inherited from PopsObject
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from NamedDefinition
#_pcore_init_hash, create, #eql?, from_asserted_hash, from_hash, #initialize
Methods inherited from Positioned
#_pcore_init_hash, create, #file, from_asserted_hash, from_hash, #initialize, #line, #pos
Methods inherited from PopsObject
#_pcore_init_hash, create, #eql?, from_asserted_hash, from_hash, #initialize, #to_s
Methods included from Types::PuppetObject
#_pcore_init_hash, #_pcore_type, #to_s
Constructor Details
This class inherits a constructor from Puppet::Pops::Model::NamedDefinition
Class Method Details
._pcore_type ⇒ Object
2034 2035 2036 2037 2038 |
# File 'lib/puppet/pops/model/ast.rb', line 2034 def self._pcore_type @_pcore_type ||= Types::PObjectType.new('Puppet::AST::ResourceTypeDefinition', { 'parent' => NamedDefinition._pcore_type }) end |
Instance Method Details
#_pcore_all_contents(path, &block) ⇒ Object
2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 |
# File 'lib/puppet/pops/model/ast.rb', line 2045 def _pcore_all_contents(path, &block) path << self @parameters.each do |value| block.call(value, path) value._pcore_all_contents(path, &block) end unless @body.nil? block.call(@body, path) @body._pcore_all_contents(path, &block) end path.pop end |
#_pcore_contents {|@body| ... } ⇒ Object
2040 2041 2042 2043 |
# File 'lib/puppet/pops/model/ast.rb', line 2040 def _pcore_contents @parameters.each { |value| yield(value) } yield(@body) unless @body.nil? end |