Module: DTest::Hook

Included in:
Global::Harness, Test::Case, Test::Manager
Defined in:
lib/dtest/util.rb

Overview

Block executor

Instance Method Summary collapse

Instance Method Details

#exec(list, context) ⇒ Object



35
36
37
38
39
# File 'lib/dtest/util.rb', line 35

def exec(list, context)
  list.each do |block|
    block.call(context)
  end
end