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 605 def self.register_ptype(loader, ir) 606 create_ptype(loader, ir, 'AnyType') 607 end
Public Instance Methods
callable_args?(callable_t, guard)
click to toggle source
@api private
# File lib/puppet/pops/types/types.rb 614 def callable_args?(callable_t, guard) 615 # if callable_t is Optional (or indeed PUndefType), this means that 'missing callable' is accepted 616 callable_t.assignable?(DEFAULT, guard) 617 end
instance?(o, guard = nil)
click to toggle source
# File lib/puppet/pops/types/types.rb 609 def instance?(o, guard = nil) 610 o.nil? || :undef == o 611 end
Protected Instance Methods
_assignable?(o, guard)
click to toggle source
@api private
# File lib/puppet/pops/types/types.rb 623 def _assignable?(o, guard) 624 o.is_a?(PUndefType) 625 end