class Puppet::Pops::Types::PUndefType
@api public
Constants
- DEFAULT
Public Class Methods
register_ptype(loader, ir)
click to toggle source
# File lib/puppet/pops/types/types.rb 604 def self.register_ptype(loader, ir) 605 create_ptype(loader, ir, 'AnyType') 606 end
Public Instance Methods
callable_args?(callable_t, guard)
click to toggle source
@api private
# File lib/puppet/pops/types/types.rb 613 def callable_args?(callable_t, guard) 614 # if callable_t is Optional (or indeed PUndefType), this means that 'missing callable' is accepted 615 callable_t.assignable?(DEFAULT, guard) 616 end
instance?(o, guard = nil)
click to toggle source
# File lib/puppet/pops/types/types.rb 608 def instance?(o, guard = nil) 609 o.nil? || :undef == o 610 end
Protected Instance Methods
_assignable?(o, guard)
click to toggle source
@api private
# File lib/puppet/pops/types/types.rb 622 def _assignable?(o, guard) 623 o.is_a?(PUndefType) 624 end