Method: Puppet::Pops::Types::PObjectType::PFunction#initialize

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

#initialize(name, container, init_hash) ⇒ PFunction

Returns a new instance of PFunction.

Parameters:

  • name (String)

    The name of the attribute

  • container (PObjectType)

    The containing object type

  • init_hash (Hash{String=>Object})

    Hash containing function options



404
405
406
# File 'lib/puppet/pops/types/p_object_type.rb', line 404

def initialize(name, container, init_hash)
  super(name, container, TypeAsserter.assert_instance_of(["initializer for function '%s'", name], TYPE_FUNCTION, init_hash))
end