lib/dispatch-rider/callbacks/storage.rb in dispatch-rider-1.9.0 vs lib/dispatch-rider/callbacks/storage.rb in dispatch-rider-2.0.0
- old
+ new
@@ -1,10 +1,9 @@
module DispatchRider
module Callbacks
# Storage for callbacks.
class Storage
-
def initialize
@callbacks = Hash.new { |storage, key| storage[key] = [] }
end
# @param [Symbol] event name of the event
@@ -39,9 +38,8 @@
# @param [Symbol] event name of the event
def for(event)
@callbacks[event]
end
-
end
end
end