module Findr::StrategyProxy

StrategyProxy based on [AbstractInterface by Mark Bates](metabates.com/2011/02/07/building-interfaces-and-abstract-classes-in-ruby/) and on [Contractual by Joseph Weissman](rubygems.org/gems/contractual)

+include StrategyProxy+ to declare a class to be a StrategyProxy. Also you need to define +@strategy+ in the initializer of your class and +@@strategy++ if you want to use singleton_provides.

Public Class Methods

included(klass) click to toggle source
# File lib/findr/strategy_proxy.rb, line 12
def self.included(klass)
  klass.send(:include, StrategyProxy::Methods)
  klass.send(:extend,  StrategyProxy::Methods)
  klass.send(:extend,  StrategyProxy::ClassMethods)
end