lib/rdfa_parser/namespace.rb in rdfa_parser-0.1.3 vs lib/rdfa_parser/namespace.rb in rdfa_parser-0.1.5

- old
+ new

@@ -64,9 +64,14 @@ else raise GraphException, "Can't bind namespace to graph of type #{graph.class}" end end + def eql?(other) + @short == other.short && @uri == other.uri && @fragment == other.fragment + end + alias_method :==, :eql? + # Output xmlns attribute name def xmlns_attr short.nil? ? "xmlns" : "xmlns:#{short}" end