lib/mapper/type/attribute.rb 1 location
|
@@ 47-50 (lines=4) @@
|
| 44 |
|
@owner.hash ^ @name.hash |
| 45 |
|
end |
| 46 |
|
|
| 47 |
|
def eql?(other) |
| 48 |
|
return false unless other.is_a?(self.class) |
| 49 |
|
@owner == other.owner && @name == other.name |
| 50 |
|
end |
| 51 |
|
|
| 52 |
|
def ==(other) |
| 53 |
|
eql?(other) |
lib/mapper/type/variable.rb 1 location
|
@@ 41-44 (lines=4) @@
|
| 38 |
|
@owner.hash ^ @id.hash |
| 39 |
|
end |
| 40 |
|
|
| 41 |
|
def eql?(other) |
| 42 |
|
return false unless other.is_a?(self.class) |
| 43 |
|
id == other.id && owner == other.owner |
| 44 |
|
end |
| 45 |
|
end |
| 46 |
|
end |
| 47 |
|
end |
lib/mapper/type/parameter.rb 1 location
|
@@ 32-35 (lines=4) @@
|
| 29 |
|
@owner.hash ^ @id.hash |
| 30 |
|
end |
| 31 |
|
|
| 32 |
|
def eql?(other) |
| 33 |
|
return false unless other.is_a?(self.class) |
| 34 |
|
@owner == other.owner && @id == other.id |
| 35 |
|
end |
| 36 |
|
|
| 37 |
|
Type.instance_methods.each do |method| |
| 38 |
|
next if method_defined?(method) |