Group :: Development/Ruby
RPM: gem-equatable
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Current version: 0.7.0-alt1
Build date: 2 september 2021, 20:04 ( 140.0 weeks ago )
Size: 13.92 Kb
Home page: https://github.com/piotrmurach/equatable
License: MIT
Summary: Allows ruby objects to implement equality comparison and inspection methods
Description:
List of contributors List of rpms provided by this srpm:
ACL:
Build date: 2 september 2021, 20:04 ( 140.0 weeks ago )
Size: 13.92 Kb
Home page: https://github.com/piotrmurach/equatable
License: MIT
Summary: Allows ruby objects to implement equality comparison and inspection methods
Description:
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.
Current maintainer: Ruby Maintainers Team 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.
List of contributors List of rpms provided by this srpm:
- gem-equatable
- gem-equatable-devel
- gem-equatable-doc