# File lib/aws/core/resource.rb, line 158 def define_attribute_type type_name class_eval "\ndef self.\#{type_name}_attributes\n@\#{type_name}_attributes ||= {}\nend\n\ndef self.\#{type_name}_attribute name, options = {}, &block\nattr = attribute(name, options, &block)\n\#{type_name}_attributes[attr.name] = attr\nend\n\n" end