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

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

#callable_args?(required_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)


2343
2344
2345
2346
# File 'lib/puppet/pops/types/types.rb', line 2343

def callable_args?(required_callable_t, guard)
  # If the required callable is euqal or more specific than self, self is acceptable arguments
  required_callable_t.assignable?(self, guard)
end