Module: DeepEquality
- Included in:
- JsonType, Validation, ValidationFailure
- Defined in:
- lib/json_patterns.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
21 22 23 24 25 |
# File 'lib/json_patterns.rb', line 21 def ==(other) self.class == other.class and self.instance_variables.map { |v| self.instance_variable_get(v) } == other.instance_variables.map { |v| other.instance_variable_get(v) } end |