Method: Puppet::Pal.assert_type

Defined in:
lib/puppet/pal/pal_impl.rb

.assert_type(type, value, what, allow_nil = false) ⇒ Object



558
559
560
# File 'lib/puppet/pal/pal_impl.rb', line 558

def self.assert_type(type, value, what, allow_nil = false)
  Puppet::Pops::Types::TypeAsserter.assert_instance_of(nil, type, value, allow_nil) { _('Puppet Pal: %{what}') % { what: what } }
end