Class: Unparser::Equalizer
- Inherits:
-
Module
- Object
- Module
- Unparser::Equalizer
- Defined in:
- lib/unparser/equalizer.rb
Overview
Define equality, equivalence and inspection methods
Original code before vendoring and reduction from: github.com/dkubb/equalizer.
Defined Under Namespace
Modules: Methods
Instance Method Summary collapse
-
#initialize(*keys) ⇒ undefined
constructor
private
Initialize an Equalizer with the given keys.
Constructor Details
#initialize(*keys) ⇒ undefined
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.
Initialize an Equalizer with the given keys
Will use the keys with which it is initialized to define #cmp?, #hash, and #inspect
rubocop:disable Lint/MissingSuper
20 21 22 23 24 |
# File 'lib/unparser/equalizer.rb', line 20 def initialize(*keys) @keys = keys define_methods freeze end |