Module: Inploy::DSL::ClassMethods

Defined in:
lib/inploy/dsl.rb

Instance Method Summary collapse

Instance Method Details

#define_callbacks(*callbacks) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/inploy/dsl.rb', line 6

def define_callbacks(*callbacks)
  callbacks.each do |callback|
    define_method callback do |&block|
      instance_variable_set "@#{callback}", block
    end
  end
end