devel/ruby-equatable 0.7.0 NetBSD
Extends equality comparison and inspection methods
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, ruby
- Package size
- 14.3 KiB, 34.4 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. 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.
Install
Binary package:
pkgin install ruby33-equatable
From pkgsrc:
cd /usr/pkgsrc/devel/ruby-equatable && make install clean
Dependencies
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
ruby34-equatable-0.7.0,ruby40-equatable-0.7.0