method

hook

ruby latest stable - Class: Test::Unit::Runner::Worker

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

hook(id,&block)
public

No documentation available.

# File lib/test/unit.rb, line 309
        def hook(id,&block)
          @hooks[id] ||= []
          @hooks[id] << block
          self
        end