Define equality, equivalence and inspection methods
Initialize an Equalizer with the given keys
Will use the keys with which it is initialized to define cmp?, hash, and inspect
@param [String] name
@param [Array<Symbol>] keys
@return [undefined]
@api private
# File lib/virtus/support/equalizer.rb, line 18 def initialize(name, keys = []) @name = name.dup.freeze @keys = keys.dup define_methods include_comparison_methods end
Generated with the Darkfish Rdoc Generator 2.