Method: Stone::Callbacks#register_klass
- Defined in:
- lib/stone/callbacks.rb
#register_klass(klass) ⇒ Object
Registers the klass with the current instance of Callbacks in Resource
Parameters
klassThe class to be registered
20 21 22 23 24 25 |
# File 'lib/stone/callbacks.rb', line 20 def register_klass(klass) self[klass.to_s.make_key] = {} CALLBACKS.each do |cb_sym| self[klass.to_s.make_key][cb_sym] = [] end end |