Skip to content

Commit

Permalink
Add a default inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaspers authored and pjaspers committed Mar 3, 2022
1 parent 0120c57 commit 371b61f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/orbf/rules_engine/value_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def init_with(coder)
@values = coder.map.transform_keys(&:to_sym)
end

def inspect
"#<#{self.class}:0x#{object_id.to_s(16)} #{@values.inspect}"
end

def eql?(other)
self.class == other.class && values == other.values
end
Expand Down

0 comments on commit 371b61f

Please sign in to comment.