Module Equatable
In: lib/equatable.rb
lib/equatable/version.rb

encoding: utf-8

Methods

Included Modules

Methods

Classes and Modules

Module Equatable::Methods

Constants

VERSION = '0.5.0'

Attributes

comparison_attrs  [R]  Holds all attributes used for comparison.

@return [Array<Symbol>]

@api private

Public Class methods

Hook into module inclusion.

@param [Module] base

  the module or class including Equatable

@return [self]

@api private

Public Instance methods

Objects that include this module are assumed to be value objects. It is also assumed that the only values that affect the results of equality comparison are the values of the object‘s attributes.

@param [Array<Symbol>] *args

@return [undefined]

@api public

Copy the comparison_attrs into the subclass.

@param [Class] subclass

@api private

[Validate]