Ruby's core Forwardable gets the job done(barely) and produces most unreadable code. Furthermore it is about twice as slow (1.9.2-p290) or thrice as slow (1.9.3-p0) as it needs to be. This is a nonintrusive (as is Forwardable) module that allows to delegate methods to instance variables, objects returned by instance_methods, other methods of the same receiver, the receiver itself, a chain of messages or an arbitrary object. Paramters can be provided in the forwarding definition (parially or totally=. It also defines some AOP support as after and before filters. Performance will be pushed to 2~3 times of Fowardable with the 0.2 branch of this gem

Required Ruby Version

>= 1.9.2

Authors

Robert Dober

Versions

  1. 0.2.1 September 14, 2013 (12.5 KB)
  2. 0.2.0 January 10, 2013 (12 KB)
  3. 0.2.0rc5 April 28, 2012 (12 KB)
  4. 0.2.0rc4 April 21, 2012 (11.5 KB)
  5. 0.2.0.rc3 April 21, 2012 (12 KB)
  6. 0.1.0 April 15, 2012 (11 KB)
Show all versions (7 total)

SHA 256 checksum