Sha256: 44517ee8dce441ed08479a6c1e0000406da7ee87387444430ad74db0c5aa76e9

Contents?: true

Size: 447 Bytes

Versions: 35

Compression:

Stored size: 447 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(obj = nil)
      @support_code.step_definitions.map(&:to_hash).to_json(obj)
    end
  end
end

Version data entries

35 entries across 35 versions & 4 rubygems

Version Path
cucumber-9.2.0 lib/cucumber/step_definitions.rb
cucumber-9.1.2 lib/cucumber/step_definitions.rb
cucumber-9.1.1 lib/cucumber/step_definitions.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.1.0/lib/cucumber/step_definitions.rb
cucumber-9.1.0 lib/cucumber/step_definitions.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.0.2/lib/cucumber/step_definitions.rb
cucumber-9.0.2 lib/cucumber/step_definitions.rb
cucumber-9.0.1 lib/cucumber/step_definitions.rb
cucumber-9.0.0 lib/cucumber/step_definitions.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_definitions.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_definitions.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_definitions.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_definitions.rb
cucumber-8.0.0 lib/cucumber/step_definitions.rb
cucumber-8.0.0.rc.1 lib/cucumber/step_definitions.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/step_definitions.rb
cucumber-7.1.0 lib/cucumber/step_definitions.rb
cucumber-7.0.0 lib/cucumber/step_definitions.rb
cucumber-6.1.0 lib/cucumber/step_definitions.rb
cucumber-6.0.0 lib/cucumber/step_definitions.rb