Class: Axiom::Equalizer

Inherits:
Equalizer
  • Object
show all
Defined in:
lib/axiom/support/equalizer.rb

Overview

Define equality, equivalence and inspection methods

Instance Method Summary collapse

Constructor Details

#initializeundefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Include the #eql? and #== methods



13
14
15
16
17
18
19
# File 'lib/axiom/support/equalizer.rb', line 13

def initialize(*)
  super
  module_eval do
    include Adamantium
    memoize :hash
  end
end