# File lib/puppet/type.rb, line 79 79: def self.attrclass(name) 80: @attrclasses ||= {} 81: 82: # We cache the value, since this method gets called such a huge number 83: # of times (as in, hundreds of thousands in a given run). 84: unless @attrclasses.include?(name) 85: @attrclasses[name] = case self.attrtype(name) 86: when :property; @validproperties[name] 87: when :meta; @@metaparamhash[name] 88: when :param; @paramhash[name] 89: end 90: end 91: @attrclasses[name] 92: end