class Puppet::Pops::Types::PCatalogEntryType

Abstract representation of a type that can be placed in a Catalog. @api public

Constants

DEFAULT

Public Class Methods

register_ptype(loader, ir) click to toggle source
     # File lib/puppet/pops/types/types.rb
3135 def self.register_ptype(loader, ir)
3136   create_ptype(loader, ir, 'AnyType')
3137 end

Public Instance Methods

instance?(o, guard = nil) click to toggle source
     # File lib/puppet/pops/types/types.rb
3141 def instance?(o, guard = nil)
3142   assignable?(TypeCalculator.infer(o), guard)
3143 end

Protected Instance Methods

_assignable?(o, guard) click to toggle source

@api private

     # File lib/puppet/pops/types/types.rb
3147 def _assignable?(o, guard)
3148   o.is_a?(PCatalogEntryType)
3149 end