Method: Puppet::Pops::Types::TypeCalculator#callable?

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

#callable?(callable, args) ⇒ Boolean

Answers, does the given callable accept the arguments given in args (an array or a tuple)

Returns:

  • (Boolean)


195
196
197
# File 'lib/puppet/pops/types/type_calculator.rb', line 195

def callable?(callable, args)
  callable.is_a?(PAnyType) && callable.callable?(args)
end