Class: Puppet::Pops::Model::PlanDefinition
- Inherits:
-
FunctionDefinition
- Object
- PopsObject
- Positioned
- Expression
- Definition
- NamedDefinition
- FunctionDefinition
- Puppet::Pops::Model::PlanDefinition
- Defined in:
- lib/puppet/pops/model/ast.rb
Overview
Instance Attribute Summary
Attributes inherited from FunctionDefinition
Attributes inherited from NamedDefinition
Attributes inherited from Positioned
Attributes inherited from PopsObject
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from FunctionDefinition
#_pcore_init_hash, create, #eql?, from_asserted_hash, from_hash, #initialize
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::FunctionDefinition
Class Method Details
._pcore_type ⇒ Object
2792 2793 2794 2795 2796 |
# File 'lib/puppet/pops/model/ast.rb', line 2792 def self._pcore_type @_pcore_type ||= Types::PObjectType.new('Puppet::AST::PlanDefinition', { 'parent' => FunctionDefinition._pcore_type }) end |
Instance Method Details
#_pcore_all_contents(path, &block) ⇒ Object
2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 |
# File 'lib/puppet/pops/model/ast.rb', line 2804 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 unless @return_type.nil? block.call(@return_type, path) @return_type._pcore_all_contents(path, &block) end path.pop end |
#_pcore_contents {|@body| ... } ⇒ Object
2798 2799 2800 2801 2802 |
# File 'lib/puppet/pops/model/ast.rb', line 2798 def _pcore_contents @parameters.each { |value| yield(value) } yield(@body) unless @body.nil? yield(@return_type) unless @return_type.nil? end |