# File lib/wsdl/soap/mappingRegistryCreatorSupport.rb, line 200 def define_attribute(attributes) schema_attribute = [] attributes.each do |attribute| name = name_attribute(attribute) if klass = attribute_basetype(attribute) type = klass.name else warn("unresolved attribute type #{attribute.type} for #{name}") type = nil end schema_attribute << [name, type] end "{\n " + schema_attribute.collect { |name, type| assign_const(name.namespace, 'Ns') dqname(name) + ' => ' + ndq(type) }.join(",\n ") + "\n }" end