Sha256: c435e58fe9e483cdbc622b64fd78f68f7b98a9b9fc90b5c60e5306fa8b92b2e2

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

module Cucumber
  class StepDefinitions
    def initialize(configuration = Configuration.default)
      configuration = Configuration.new(configuration)
      @support_code = Runtime::SupportCode.new(nil, configuration)
      @support_code.load_files_from_paths(configuration.autoload_code_paths)
    end

    def to_json
      @support_code.step_definitions.map(&:to_hash).to_json
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
cucumber-3.2.0 lib/cucumber/step_definitions.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/cucumber-3.1.2/lib/cucumber/step_definitions.rb
cucumber-4.0.0.rc.1 lib/cucumber/step_definitions.rb
cucumber-3.1.2 lib/cucumber/step_definitions.rb
cucumber-3.1.1 lib/cucumber/step_definitions.rb