Class: Puppet::Pops::Types::PUndefType
- Inherits:
-
PAnyType
- Object
- TypedModelObject
- PAnyType
- Puppet::Pops::Types::PUndefType
- Defined in:
- lib/puppet/pops/types/types.rb
Constant Summary collapse
- DEFAULT =
PUndefType.new
Instance Method Summary collapse
Methods inherited from PAnyType
#==, #accept, #assignable?, #callable?, #eql?, #generalize, #hash, #iterable?, #iterable_type, #kind_of_callable?, #normalize, #simple_name, #to_alias_expanded_s, #to_s
Methods included from Visitable
Instance Method Details
#callable_args?(callable_t, guard) ⇒ 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.
440 441 442 443 |
# File 'lib/puppet/pops/types/types.rb', line 440 def callable_args?(callable_t, guard) # if callable_t is Optional (or indeed PUndefType), this means that 'missing callable' is accepted callable_t.assignable?(DEFAULT, guard) end |
#instance?(o) ⇒ Boolean
435 436 437 |
# File 'lib/puppet/pops/types/types.rb', line 435 def instance?(o) o.nil? || o == :undef end |