Method: XSD::NS#compare

Defined in:
lib/xsd/ns.rb

#compare(ns, name, rhs) ⇒ Object



113
114
115
116
117
118
119
120
121
122
123
# File 'lib/xsd/ns.rb', line 113

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