devel/rubygem-delegate 0.6.1 FreeBSD
Provide three abilities to delegate method calls to an object
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD2CLAUSE, RUBY
- Categories
- devel, rubygems
- Package size
- 10.4 KiB, 27.7 KiB installed
Description
This library provides three different ways to delegate method calls to an object. The easiest to use is SimpleDelegator. Pass an object to the constructor and all methods supported by the object will be delegated. This object can be changed later.
Going a step further, the top level DelegateClass method allows you to easily setup delegation through class inheritance. This is considerably more flexible and thus probably the most common use for this library.
Finally, if you need full control over the delegation scheme, you can inherit from the abstract class Delegator and customize as needed. (If you find yourself needing this control, have a look at Forwardable which is also in the standard library. It may suit your needs better.)
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/rubygem-delegate | 0.6.1 |
| DragonFly | devel/rubygem-delegate | 0.4.0 |
Install
Binary package:
pkg install rubygem-delegate
From the ports tree:
cd /usr/ports/devel/rubygem-delegate/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= rubygem-delegate>0:devel/rubygem-delegate
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.6.1 | 0.6.1 | 0.2.0 | 0.4.0 | 0.6.1 |
| FreeBSD:14:quarterly | 0.6.1 | 0.6.1 | n/a | 0.4.0 | 0.6.1 |
| FreeBSD:15:latest | 0.6.1 | 0.6.1 | n/a | 0.4.0 | 0.4.0 |
| FreeBSD:15:quarterly | 0.6.1 | 0.6.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.6.1 | 0.6.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 6
Run dependencies 6
No port depends on this one.
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/delegate-0.6.1.gem | 12800 | 54cf946cacfe05b1c23114edd8fbd8d54e9cea7abf36b95130ab53cc88b8f7e4 |
Master sites 1
- RG
Commit history 0
No commits in the history this site was built from.