Code Duplication    Length = 5-6 lines in 2 locations

lib/mapper/type/attribute.rb 2 locations

@@ 84-89 (lines=6) @@
81
              instance_variable_set("@#{key}", options.fetch(key, value))
82
            end
83
          end
84
85
          def satisfied_by?(value)
86
            @types.any? { |type| type.satisfied_by?(value) }
87
          end
88
89
          def resolved?
90
            types.all?(&:resolved?)
91
          end
92
@@ 91-95 (lines=5) @@
88
89
          def resolved?
90
            types.all?(&:resolved?)
91
          end
92
93
          def resolved!(context = nil)
94
            types.each do |type|
95
              type.resolved!(context)
96
            end
97
          end
98