# File lib/puppet/type.rb, line 62 62: def self.attrclass(name) 63: @attrclasses ||= {} 64: 65: # We cache the value, since this method gets called such a huge number 66: # of times (as in, hundreds of thousands in a given run). 67: unless @attrclasses.include?(name) 68: @attrclasses[name] = case self.attrtype(name) 69: when :property; @validproperties[name] 70: when :meta; @@metaparamhash[name] 71: when :param; @paramhash[name] 72: end 73: end 74: @attrclasses[name] 75: end