Module: Kabutops::Extensions::CallbackSupport
Defined Under Namespace
Modules: ClassMethods
Classes: Manager
Instance Method Summary
collapse
Methods included from Includable
append_features, included
Instance Method Details
#callbacks(&block) ⇒ Object
34
35
36
37
|
# File 'lib/kabutops/extensions/callback_support.rb', line 34
def callbacks &block
@manager ||= Manager.new(allowed_callbacks)
@manager.instance_eval &block
end
|
#notify(name, *args) ⇒ Object
39
40
41
42
|
# File 'lib/kabutops/extensions/callback_support.rb', line 39
def notify name, *args
@manager ||= Manager.new(allowed_callbacks)
@manager.notify(name, *args)
end
|