Method: Puppet::Type#remove

Defined in:
lib/puppet/type.rb

#removevoid

TODO:

removes if from where?

This method returns an undefined value.

Removes this object (FROM WHERE?)



987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
# File 'lib/puppet/type.rb', line 987

def remove
  # This is hackish (mmm, cut and paste), but it works for now, and it's
  # better than warnings.
  @parameters.each do |_name, obj|
    obj.remove
  end
  @parameters.clear

  @parent = nil

  # Remove the reference to the provider.
  if provider
    @provider.clear
    @provider = nil
  end
end