Code Duplication    Length = 4-4 lines in 2 locations

lib/mapper/type/attribute.rb 1 location

@@ 142-145 (lines=4) @@
139
            end
140
          end
141
142
          def hash
143
            @owner.hash ^ @name.hash
144
          end
145
146
          def eql?(other)
147
            return false unless other.is_a?(self.class)
148
            @owner == other.owner && @name == other.name

lib/mapper/type/parameter.rb 1 location

@@ 58-61 (lines=4) @@
55
            @owner.hash ^ @id.hash
56
          end
57
58
          def eql?(other)
59
            return false unless other.is_a?(self.class)
60
            @id == other.id && @owner == other.owner
61
          end
62
63
          def ==(other)
64
            eql?(other)