Method: Puppet::Type.attrtype
- Defined in:
- lib/puppet/type.rb
.attrtype(attr) ⇒ Symbol
Returns the attribute type (:property, ‘;param`, :meta).
153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/puppet/type.rb', line 153 def self.attrtype(attr) @attrtypes ||= {} unless @attrtypes.include?(attr) @attrtypes[attr] = case when @validproperties.include?(attr); :property when @paramhash.include?(attr); :param when @@metaparamhash.include?(attr); :meta end end @attrtypes[attr] end |