Method: Puppet::Parameter.proxymethods

Defined in:
lib/puppet/parameter.rb

.proxymethods(*values) ⇒ 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.

Creates instance (proxy) methods that delegates to a class method with the same name.



282
283
284
285
286
287
288
# File 'lib/puppet/parameter.rb', line 282

def self.proxymethods(*values)
  values.each { |val|
    define_method(val) do
      self.class.send(val)
    end
  }
end