Method: Cucumber::Runtime::SupportCode#around
- Defined in:
- lib/cucumber/runtime/support_code.rb
#around(scenario, block) ⇒ Object
116 117 118 119 120 121 122 123 124 |
# File 'lib/cucumber/runtime/support_code.rb', line 116 def around(scenario, block) @programming_languages.reverse.inject(block) do |blk, programming_language| proc do programming_language.around(scenario) do blk.call(scenario) end end end.call end |