Class: Equalizer

### Home Classes Methods

### In Files

- lib/equalizer.rb
- lib/equalizer/version.rb

### Parent

Module

### Namespace

- MODULE Equalizer::Methods

### Methods

- ::new

### Included Modules

- Equalizer::Methods

### Files

- LICENSE

### Class/Module Index

Quicksearch

- Equalizer
- Equalizer::Methods

No matching classes.

# Equalizer

Define equality, equivalence and inspection methods

### Constants

VERSION

  Gem version

### Public Class Methods

new(*keys) click to toggle source

Initialize an Equalizer with the given keys

Will use the keys with which it is initialized to define cmp?, hash, and inspect

@param [Array<Symbol>] keys

@return [undefined]

@api private

    # File lib/equalizer.rb, line 15
    def initialize(*keys)
      @keys = keys
      define_methods
      freeze
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.