Code Duplication    Length = 4-4 lines in 2 locations

lib/mapper/type.rb 2 locations

@@ 88-91 (lines=4) @@
85
          compliance_error("Type #{self} doesn't have parameter #{id}")
86
        end
87
88
        def absent_parameter!(id)
89
          return unless parameter?(id)
90
          compliance_error("Type #{self} has defined parameter #{id}")
91
        end
92
93
        def hash
94
          abstract_method
@@ 83-86 (lines=4) @@
80
        end
81
82
        # @param [Symbol] id
83
        def parameter!(id)
84
          return if parameter?(id)
85
          compliance_error("Type #{self} doesn't have parameter #{id}")
86
        end
87
88
        def absent_parameter!(id)
89
          return unless parameter?(id)