Method: Puppet::Property.method_added

Defined in:
lib/puppet/property.rb

.method_added(sym) ⇒ 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.

Protects against override of the #safe_insync? method.

Raises:

  • (RuntimeError)

    if the added method is ‘:safe_insync?`



284
285
286
# File 'lib/puppet/property.rb', line 284

def self.method_added(sym)
  raise "Puppet::Property#safe_insync? shouldn't be overridden; please override insync? instead" if sym == :safe_insync?
end