Class: Equalizer
- Inherits:
-
Module
- Object
- Module
- Equalizer
- Includes:
- Adamantium
- Defined in:
- lib/equalizer.rb,
lib/equalizer/version.rb
Overview
Define equality, equivalence and inspection methods
Defined Under Namespace
Modules: Methods
Constant Summary collapse
- VERSION =
'0.0.2'.freeze
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
19 20 21 22 23 |
# File 'lib/equalizer.rb', line 19 def initialize(*keys) @keys = keys define_methods include_comparison_methods end |