Method: Puppet::Type#ref
- Defined in:
- lib/puppet/type.rb
#ref ⇒ String
Returns a reference to this as a string in “Type” format.
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 |