Method: XSD::NS#compare
- Defined in:
- lib/xsd/ns.rb
#compare(ns, name, rhs) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/xsd/ns.rb', line 81 def compare(ns, name, rhs) if (ns == @default_namespace) return true if (name == rhs) end @tag2ns.each do |assigned_tag, assigned_ns| if assigned_ns == ns && "#{assigned_tag}:#{name}" == rhs return true end end false end |