# File xsd/qname.rb, line 43
def ==(rhs)
!rhs.nil? and @namespace == rhs.namespace and @name == rhs.name
end
# File xsd/qname.rb, line 27
def dump
ns = @namespace.nil? ? 'nil' : @namespace.dump
name = @name.nil? ? 'nil' : @name.dump
"XSD::QName.new(#{ns}, #{name})"
end
# File xsd/qname.rb, line 23
def dup_name(name)
XSD::QName.new(@namespace, name)
end
# File xsd/qname.rb, line 55
def hash
@namespace.hash ^ @name.hash
end
# File xsd/qname.rb, line 63
def inspect
sprintf("#<%s:0x%x %s>", self.class.name, __id__,
"{#{ namespace }}#{ name }")
end
# File xsd/qname.rb, line 33
def match(rhs)
if rhs.namespace and (rhs.namespace != @namespace)
return false
end
if rhs.name and (rhs.name != @name)
return false
end
true
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.