Method: Puppet::Util::Reference.newreference

Defined in:
lib/puppet/util/reference.rb

.newreference(name, options = {}, &block) ⇒ Object



24
25
26
27
28
29
# File 'lib/puppet/util/reference.rb', line 24

def self.newreference(name, options = {}, &block)
  ref = self.new(name, options, &block)
  instance_hash(:reference)[name.intern] = ref

  ref
end