lib/equalizer.rb
# Define an inspect method that reports the values of the instance's keys
#
# @return [undefined]
#
# @api private
Define an inspect method that reports the values of the instance's keys
Define an inspect method that reports the values of the instance ' s keys
def define_inspect_method
    keys = @keys
    define_method(:inspect) do | |
      klass = self.class
      name  = klass.name || klass.inspect
      "#<#{name}#{keys.map { |key| " #{key}=#{__send__(key).inspect}" }.join}>"
    end
  end
def define_inspect_method keys = @keys define_method ( :inspect ) do | | klass = self . class name = klass . name || klass . inspect "#<#{name}#{keys.map { |key| " #{key}=#{__send__(key).inspect}" }.join}>" end end
Define an inspect method that reports the values of the instance's keys
Define an inspect method that reports the values of the instance ' s keys
None
undefined
api
None