Method: Pools::Pooled::ClassMethods#preparation_methods

Defined in:
lib/pools/pooled.rb

#preparation_methods(*methods) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/pools/pooled.rb', line 43

def preparation_methods(*methods)
  methods.each do |method|
    define_method(method) do |*params|
      @preparation_chain << ([method] + params)
    end
  end
end