# File wsdl/xmlSchema/attribute.rb, line 87
def parse_attr(attr, value)
case attr
when RefAttrName
@ref = value
when UseAttrName
@use = value.source
when FormAttrName
@form = value.source
when NameAttrName
if directelement?
@name = XSD::QName.new(targetnamespace, value.source)
else
@name = XSD::QName.new(nil, value.source)
end
when TypeAttrName
@type = value
when DefaultAttrName
@default = value.source
when FixedAttrName
@fixed = value.source
when ArrayTypeAttrName
@arytype = if value.namespace.nil?
XSD::QName.new(XSD::Namespace, value.source)
else
value
end
else
nil
end
end
# File wsdl/xmlSchema/attribute.rb, line 79
def parse_element(element)
case element
when SimpleTypeName
@local_simpletype = SimpleType.new
@local_simpletype
end
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.