BSD Ports

devel/rubygem-equatable 0.7.0 DragonFly

Implement equality comparison and inspection methods

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, rubygems
Package size
5.2 KiB, 12.8 KiB installed

Description

Equatable 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. Howerver, 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.

In the other systems

SystemPortVersion
DragonFlydevel/rubygem-equatable0.7.0
FreeBSDdevel/rubygem-equatable0.7.0

Install

Binary package:

pkg install rubygem-equatable

From DPorts:

cd /usr/dports/devel/rubygem-equatable && make install clean

Dependencies

Run dependencies 2
Required by 1