lib/origami/name.rb in origami-1.2.4 vs lib/origami/name.rb in origami-1.2.5

- old
+ new

@@ -3,11 +3,11 @@ = File name.rb = Info This file is part of Origami, PDF manipulation framework for Ruby - Copyright (C) 2010 Guillaume Delugré <guillaume@security-labs.org> + Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org> All right reserved. Origami is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -90,10 +90,10 @@ @value.to_sym end end def ==(object) #:nodoc: - @value.to_sym == object + self.eql?(object) or @value.to_sym == object end def eql?(object) #:nodoc: object.is_a?(Name) and self.to_s == object.to_s end