RubyGems.org

object-proxy

0.3.0

Provides collection of four proxy objects intended for intercepting calls to instance methods. Works as intermediate layer between caller and called. Allows to invoke an handler both before method call and adjust its arguments and after call and post-proccess result. Aimed as tool for instant adapting the complex objects without complete deriving and extending whole classes in cases, where isn't possible to derive them as homogenic functional units or where it's simply impractical to derive them.

installgem install object-proxy
Authors

Martin Kozák

2,853 total downloads 864 for this version
Owners

52a3737654e7bad4204156ffb0888aa9

Gemfile
gem 'object-proxy', '~> 0.3.0'
Versions
  1. 0.3.0 May 24, 2012 (9 KB)
  2. 0.2.0 October 19, 2011 (8.5 KB)
  3. 0.1.0 March 19, 2011 (7 KB)
Runtime Dependencies
  1. hash-utils >= 0.12.1