Actually, how about this (pseudo):

def ==(arg)
  if arg.kind_of? XML::Node
    return true if self.id == arg.id
  else
    return true if self.to_s == arg
  end
end

Deal - I'll do that.

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to