vendor/bundle/ruby/1.8/gems/ZenTest-4.6.2/lib/autotest.rb
def hook name, *args
    deprecated = {
      # none currently
    }

    if deprecated[name] and not HOOKS[name].empty? then
      warn "hook #{name} has been deprecated, use #{deprecated[name]}"
    end

    HOOKS[name].any? { |plugin| plugin[self, *args] }
  end
##
# Call the event hook named +name+, passing in optional args
# depending on the hook itself.
#
# Returns false if no hook handled the event.
#
# === Hook Writers!
#
# This executes all registered hooks <em>until one returns truthy</em>.
# Pay attention to the return value of your block!
Call the event hook named +name+, passing in optional args
depending on the hook itself.

Returns false if no hook handled the event.

Hook Writers!

This executes all registered hooks until one returns truthy.
Pay attention to the return value of your block!
Call the event hook named + name + passing in optional args depending on the hook itself . Returns false if no hook handled the event . Hook Writers! This executes all registered hooks until one returns truthy . Pay attention to the return value of your block!
def hook name, *args
    deprecated = {
    }
    if deprecated[name] and not HOOKS[name].empty? then
      warn "hook #{name} has been deprecated, use #{deprecated[name]}"
    end
    HOOKS[name].any? { |plugin| plugin[self, *args] }
  end
def hook name , * args deprecated = { } if deprecated [ name ] and not HOOKS [ name ] . empty? then warn "hook #{name} has been deprecated, use #{deprecated[name]}" end HOOKS [ name ] . any? { | plugin | plugin [ self , * args ] } end
Call the event hook named +name+, passing in optional args
depending on the hook itself.
Call the event hook named + name + passing in optional args depending on the hook itself .
# none currently
name
args