Method: Puppet::Functions.any_signature

Defined in:
lib/puppet/functions.rb

.any_signature(from, to, names) ⇒ Object

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.

Construct a signature consisting of Object type, with min, and max, and given names. (there is only one type entry).



293
294
295
296
297
298
# File 'lib/puppet/functions.rb', line 293

def self.any_signature(from, to, names)
  # Construct the type for the signature
  # Tuple[Object, from, to]
  param_types = Puppet::Pops::Types::PTupleType.new([Puppet::Pops::Types::PAnyType::DEFAULT], Puppet::Pops::Types::PIntegerType.new(from, to))
  [Puppet::Pops::Types::PCallableType.new(param_types), names]
end