Package gem-equatable: Information
Source package: gem-equatable
Version: 0.6.1-alt1.1
Build time: Jun 18, 2020, 09:25 AM in the task #247371
Category: Development/Ruby
Report package bugHome page: https://github.com/piotrmurach/equatable
License: MIT
Summary: Allows ruby objects to implement equality comparison and inspection methods
Description:
Allows ruby objects to implement equality comparison and inspection methods. By including this module, a class indicates that its instances have explicit general contracts for hash, == and eql? methods. Specifically eql? contract requires that it implements an equivalence relation. By default each instance of the class is equal only to itself. This is a right behaviour when you have distinct objects. However, it is the responsibility of any class to clearly define their equality. Failure to do so may prevent instances to behave as expected when for instance Array#uniq is invoked or when they are used as Hash keys.
Maintainer: Ruby Maintainers Team
Last changed
Sept. 11, 2019 Pavel Skrylev 0.6.1-alt1.1
- ! spec according to changelog rules
Aug. 8, 2019 Pavel Skrylev 0.6.1-alt1
- + packaged gem with usage Ruby Policy 2.0