Sha256: e6fa736ab40aebeaac9b507cd765c062fb5a1cffbf8cc16c692628086c9f8dfd

Contents?: true

Size: 886 Bytes

Versions: 4

Compression:

Stored size: 886 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'
require 'cucumber/core/ast/doc_string'

module Cucumber
  class Runtime
    # This is what a programming language will consider to be a runtime.
    #
    # It's a thin class that directs the handul of methods needed by the
    # programming languages to the right place.
    class ForProgrammingLanguages
      extend Forwardable

      attr_reader :support_code

      def initialize(support_code, user_interface)
        @support_code, @user_interface = support_code, user_interface
      end

      def_delegators :@user_interface,
                     :embed,
                     :ask,
                     :puts,
                     :features_paths,
                     :step_match

      def_delegators :@support_code,
                     :invoke_dynamic_steps,
                     :invoke_dynamic_step
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
cucumber-3.2.0 lib/cucumber/runtime/for_programming_languages.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/for_programming_languages.rb
cucumber-3.1.2 lib/cucumber/runtime/for_programming_languages.rb
cucumber-3.1.1 lib/cucumber/runtime/for_programming_languages.rb