Module: Callbacks
- Defined in:
- lib/callbacks.rb,
lib/classmethods.rb,
lib/instancemethods.rb
Overview
Idea stolen from rails/activerecord
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- CALLBACKS =
CALLBACKS = [
'song_halfway', 'song_end', 'boot', 'shutdown', ] []
Class Method Summary collapse
-
.included(base) ⇒ Object
Sets all things right.
Class Method Details
.included(base) ⇒ Object
Sets all things right
19 20 21 22 23 |
# File 'lib/callbacks.rb', line 19 def self.included(base) #:nodoc: base.extend Observable base.extend Callbacks::ClassMethods base.send(:include, Callbacks::InstanceMethods) end |