# File lib/puppet/type.rb, line 191
191:   def self.title_patterns
192:     case key_attributes.length
193:     when 0; []
194:     when 1;
195:       identity = lambda {|x| x}
196:       [ [ /(.*)/m, [ [key_attributes.first, identity ] ] ] ]
197:     else
198:       raise Puppet::DevError,"you must specify title patterns when there are two or more key attributes"
199:     end
200:   end