class Puppet::Pops::Model::UnlessExpression
Public Class Methods
_pcore_type()
click to toggle source
# File lib/puppet/pops/model/ast.rb 2910 def self._pcore_type 2911 @_pcore_type ||= Types::PObjectType.new('Puppet::AST::UnlessExpression', { 2912 'parent' => IfExpression._pcore_type 2913 }) 2914 end
Public Instance Methods
_pcore_all_contents(path, &block)
click to toggle source
# File lib/puppet/pops/model/ast.rb 2922 def _pcore_all_contents(path, &block) 2923 path << self 2924 unless @test.nil? 2925 block.call(@test, path) 2926 @test._pcore_all_contents(path, &block) 2927 end 2928 unless @then_expr.nil? 2929 block.call(@then_expr, path) 2930 @then_expr._pcore_all_contents(path, &block) 2931 end 2932 unless @else_expr.nil? 2933 block.call(@else_expr, path) 2934 @else_expr._pcore_all_contents(path, &block) 2935 end 2936 path.pop 2937 end
_pcore_contents() { |test| ... }
click to toggle source
# File lib/puppet/pops/model/ast.rb 2916 def _pcore_contents 2917 yield(@test) unless @test.nil? 2918 yield(@then_expr) unless @then_expr.nil? 2919 yield(@else_expr) unless @else_expr.nil? 2920 end