module Redispatcher::Dispatchable::InstanceMethods
Public Instance Methods
dispatch(options = {})
click to toggle source
Decorates the object using the inferred {#dispatcher_class}. @param [Hash] options
see {Redispatcher::Dispatcher#initialize}
# File lib/redispatcher/dispatchable.rb, line 13 def dispatch(options = {}) run_dispatcher_callbacks :dispatch do dispatcher_class.dispatch(self, options) end end
dispatcher_class()
click to toggle source
(see Dispatchable::ClassMethods#dispatcher_class
)
# File lib/redispatcher/dispatchable.rb, line 20 def dispatcher_class self.class.dispatcher_class end
dispatcher_class?()
click to toggle source
# File lib/redispatcher/dispatchable.rb, line 24 def dispatcher_class? self.class.dispatcher_class? end