Module: Lennarb::Plugins::Hooks
- Defined in:
- lib/lennarb/plugins/hooks.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.configure(app) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/lennarb/plugins/hooks.rb', line 6 def self.configure(app) app.instance_variable_set(:@_before_hooks, {}) app.instance_variable_set(:@_after_hooks, {}) app.extend(ClassMethods) app.include(InstanceMethods) end |