Sha256: d5952be8c1d7f5fe3a4d8b55e2d4d0219611cd8394a6f5c358359f0f4fdc298e

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

module Cucumber
  module RbSupport
    class RbHook
      include LanguageSupport::HookMethods

      attr_reader :tag_names
      
      def initialize(rb_language, tag_names, proc)
        @rb_language = rb_language
        @tag_names = tag_names
        @proc = proc
      end

      def invoke(location, scenario)
        @rb_language.current_world.cucumber_instance_exec(false, location, scenario, &@proc)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.3.96 lib/cucumber/rb_support/rb_hook.rb
kosmas58-cucumber-0.3.96 lib/cucumber/rb_support/rb_hook.rb
cucumber-0.3.96 lib/cucumber/rb_support/rb_hook.rb