BSD Ports

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

SystemPortVersion
FreeBSDdevel/rubygem-delegate0.6.1
DragonFlydevel/rubygem-delegate0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.6.10.6.10.2.00.4.00.6.1
FreeBSD:14:quarterly0.6.10.6.1n/a0.4.00.6.1
FreeBSD:15:latest0.6.10.6.1n/a0.4.00.4.0
FreeBSD:15:quarterly0.6.10.6.1n/an/an/a
FreeBSD:16:latest0.6.10.6.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
rubygem/delegate-0.6.1.gem1280054cf946cacfe05b1c23114edd8fbd8d54e9cea7abf36b95130ab53cc88b8f7e4
Master sites 1
  • RG

Commit history 0

No commits in the history this site was built from.