Conditions | 4 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
21 | def eql?(other) |
||
22 | return false unless other.is_a?(self.class) || is_a?(other.class) |
||
23 | return false unless other.instance_variables == instance_variables |
||
24 | instance_variables.each do |variable| |
||
25 | value = other.instance_variable_get(variable) |
||
26 | return false unless instance_variable_get(variable) == value |
||
27 | end |
||
28 | true |
||
29 | end |
||
30 | end |
||
35 |