Code Duplication    Length = 4-4 lines in 2 locations

lib/mapper/type/attribute.rb 1 location

@@ 74-77 (lines=4) @@
71
72
          # @param [Mapper::Type::Concrete] owner
73
          # @param [Symbol] name
74
          # @param [Array<Mapper::Type>] types
75
          # @param [Hash<Symbol, Object] options
76
          def initialize(owner, name, *types, **options)
77
            @owner = validate_owner!(owner)
78
            @name = validate_name!(name)
79
            @types = validate_types!(types)
80
            self.class.defaults.each do |key, value|

lib/mapper/type/parameter.rb 1 location

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