Method: Puppet::Type#ref

Defined in:
lib/puppet/type.rb

#refString

Returns a reference to this as a string in “Type” format.

Returns:

  • (String)

    a reference to this object on the form ‘Type



2524
2525
2526
2527
2528
# File 'lib/puppet/type.rb', line 2524

def ref
  # memoizing this is worthwhile ~ 3 percent of calls are the "first time
  # around" in an average run of Puppet. --daniel 2012-07-17
  @ref ||= "#{self.class.name.to_s.capitalize}[#{title}]"
end