Module: Skinny::Callbacks::ClassMethods

Defined in:
lib/skinny.rb

Instance Method Summary collapse

Instance Method Details

#define_callback(*names) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/skinny.rb', line 16

def define_callback *names
  names.each do |name|
    define_method name do |&block|
      add_callback name, &block
    end
  end
end