lib/httpx/callbacks.rb in httpx-0.3.1 vs lib/httpx/callbacks.rb in httpx-0.4.0

- old
+ new

@@ -17,15 +17,12 @@ callbacks(type).delete_if { |pr| pr[*args] == :delete } end protected - def inherit_callbacks(callbackable) - @callbacks = callbackable.callbacks - end - def callbacks(type = nil) return @callbacks unless type + @callbacks ||= Hash.new { |h, k| h[k] = [] } @callbacks[type] end end end