# File wsdl/xmlSchema/content.rb, line 36
def <<(content)
@contents << content
update_elements
end
# File wsdl/xmlSchema/content.rb, line 41
def each
@contents.each do |content|
yield content
end
end
# File wsdl/xmlSchema/content.rb, line 67
def parse_attr(attr, value)
case attr
when FinalAttrName
@final = value.source
when MixedAttrName
@mixed = (value.source == 'true')
else
nil
end
end
# File wsdl/xmlSchema/content.rb, line 47
def parse_element(element)
case element
when AllName, SequenceName, ChoiceName
o = Content.new
o.type = element.name
@contents << o
o
when AnyName
o = Any.new
@contents << o
o
when ElementName
o = Element.new
@contents << o
o
else
nil
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.