Class: Kicker::CallbackChain
- Inherits:
-
Array
- Object
- Array
- Kicker::CallbackChain
- Defined in:
- lib/kicker/callback_chain.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#call(files, stop_when_empty = true) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/kicker/callback_chain.rb', line 6 def call(files, stop_when_empty = true) each do |callback| break if stop_when_empty and files.empty? callback.call(files) end end |