class Puppet::Pops::Model::UnlessExpression

Public Class Methods

_pcore_type() click to toggle source
     # File lib/puppet/pops/model/ast.rb
2911 def self._pcore_type
2912   @_pcore_type ||= Types::PObjectType.new('Puppet::AST::UnlessExpression', {
2913     'parent' => IfExpression._pcore_type
2914   })
2915 end

Public Instance Methods

_pcore_all_contents(path, &block) click to toggle source
     # File lib/puppet/pops/model/ast.rb
2923 def _pcore_all_contents(path, &block)
2924   path << self
2925   unless @test.nil?
2926     block.call(@test, path)
2927     @test._pcore_all_contents(path, &block)
2928   end
2929   unless @then_expr.nil?
2930     block.call(@then_expr, path)
2931     @then_expr._pcore_all_contents(path, &block)
2932   end
2933   unless @else_expr.nil?
2934     block.call(@else_expr, path)
2935     @else_expr._pcore_all_contents(path, &block)
2936   end
2937   path.pop
2938 end
_pcore_contents() { |test| ... } click to toggle source
     # File lib/puppet/pops/model/ast.rb
2917 def _pcore_contents
2918   yield(@test) unless @test.nil?
2919   yield(@then_expr) unless @then_expr.nil?
2920   yield(@else_expr) unless @else_expr.nil?
2921 end