Sha256: 82f63beee551e9a29309b712c3fe3279df8930c1892392a7984d03c385212de8

Contents?: true

Size: 416 Bytes

Versions: 11

Compression:

Stored size: 416 Bytes

Contents

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

11 entries across 11 versions & 2 rubygems

Version Path
cucumber-2.99.0 lib/cucumber/step_definitions.rb
mobiusloop-0.1.5 lib/cucumber/step_definitions.rb
cucumber-2.4.0 lib/cucumber/step_definitions.rb
mobiusloop-0.1.3 lib/cucumber/step_definitions.rb
mobiusloop-0.1.2 lib/cucumber/step_definitions.rb
cucumber-2.3.3 lib/cucumber/step_definitions.rb
cucumber-2.3.2 lib/cucumber/step_definitions.rb
cucumber-2.3.1 lib/cucumber/step_definitions.rb
cucumber-2.3.0 lib/cucumber/step_definitions.rb
cucumber-2.2.0 lib/cucumber/step_definitions.rb
cucumber-2.1.0 lib/cucumber/step_definitions.rb