lib/dry/core/equalizer.rb
# Define the equalizer methods based on #keys
#
# @param [Boolean] inspect whether to define #inspect method
# @param [Boolean] immutable whether to memoize #hash method
#
# @return [undefined]
#
# @api private
Define the equalizer methods based on #keys
Define the equalizer methods based on #keys
def define_methods(inspect: true, immutable: false)
        define_cmp_method
        define_hash_method(immutable: immutable)
        define_inspect_method if inspect
      end
def define_methods ( inspect : true , immutable : false ) define_cmp_method define_hash_method ( immutable : immutable ) define_inspect_method if inspect end
Define the equalizer methods based on #keys
Define the equalizer methods based on #keys
None
undefined
inspect
<not_specific>
immutable
<not_specific>
<not_specific>
immutable whether to memoize #hash method
immutable whether to memoize #hash method
api
None