Method: Puppet::Pops::Types::PObjectType#implementation_class=

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

#implementation_class=(cls) ⇒ 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.

Raises:

  • (ArgumentError)


573
574
575
576
577
# File 'lib/puppet/pops/types/p_object_type.rb', line 573

def implementation_class=(cls)
  raise ArgumentError, "attempt to redefine implementation class for #{label}" unless @implementation_class.nil?

  @implementation_class = cls
end