Method: Puppet::Pops::Types::PUndefType#callable_args?

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

#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.

Returns:

  • (Boolean)


613
614
615
616
# File 'lib/puppet/pops/types/types.rb', line 613

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