Sha256: 973e9db7e03e5445232aa5a35ba589c80041e0e103b9cde7a27c297684e60236
Contents?: true
Size: 503 Bytes
Versions: 6
Compression:
Stored size: 503 Bytes
Contents
module Cucumber module RbSupport # Wrapper for Before, After and AfterStep hooks class RbHook attr_reader :tag_expressions def initialize(rb_language, tag_expressions, proc) @rb_language = rb_language @tag_expressions = tag_expressions @proc = proc end def invoke(pseudo_method, arguments, &block) @rb_language.current_world.cucumber_instance_exec(false, pseudo_method, *[arguments, block].compact, &@proc) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems