Sha256: 9878550af6c5244fc209997801e6abea2e34a4a4a5febfe9fa9b657faf063ca3

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 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{|stepdef| stepdef.to_hash}.to_json
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber-3.0.1 lib/cucumber/step_definitions.rb
cucumber-3.0.0 lib/cucumber/step_definitions.rb
cucumber-3.0.0.pre.2 lib/cucumber/step_definitions.rb
cucumber-3.0.0.pre.1 lib/cucumber/step_definitions.rb