Method: Puppet::Pops::Types::PNotUndefType#instance?

Defined in:
lib/puppet/pops/types/types.rb

#instance?(o, guard = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


563
564
565
# File 'lib/puppet/pops/types/types.rb', line 563

def instance?(o, guard = nil)
  !(o.nil? || o == :undef) && (@type.nil? || @type.instance?(o, guard))
end