class TestProf::BeforeAll::HooksChain
:nodoc:
def initialize(type)
def initialize(type) @type = type @before = [] @after = [] end
def run(scope = nil, metadata = [])
def run(scope = nil, metadata = []) before.each { |hook| hook.run(scope, metadata) } yield after.each { |hook| hook.run(scope, metadata) } end