Sha256: 127bda078052b09b77046d85725558aa69939612aa8880397c8e3401f0adb9c1

Contents?: true

Size: 794 Bytes

Versions: 5

Compression:

Stored size: 794 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

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-3.1.0 lib/cucumber/runtime/for_programming_languages.rb
cucumber-3.0.2 lib/cucumber/runtime/for_programming_languages.rb
cucumber-3.0.1 lib/cucumber/runtime/for_programming_languages.rb
cucumber-3.0.0 lib/cucumber/runtime/for_programming_languages.rb
cucumber-3.0.0.pre.2 lib/cucumber/runtime/for_programming_languages.rb