group_delegator

GroupDelegator provides a way to wrap a collection of objects and send method calls to the entire collection.

Beyond the basics

So up to now I’ve made it look like GroupDelegator is just a slightly better alternative to Array#map. But there’s some more advanced things that GroupDelegator can do. For example

Future Plans

As shown above Object#tap can do this, but perhaps a better solution would be:

proxy_all.self  
#=> [obj1, obj2, etc]

Examples on Use (until I can get a full fledged tutorial written up)

Several examples (included those referenced here) are in the examples directory. There’s also the specs. Some of the examples and specs have benchmarks showing the differences between the various concurrency models.

Contributing to group_delegator

Copyright © 2011 David Martin See LICENSE.txt for further details.