Sha256: b44c8508537b97c96a5a7e4ebb5dd4e64a8a98d6acdb512f2a16cc491efb4b24

Contents?: true

Size: 410 Bytes

Versions: 40

Compression:

Stored size: 410 Bytes

Contents

module Cucumber
  class StepDefinitions
    def initialize(configuration = Configuration.default)
      configuration = Configuration.parse(configuration)
      @support_code = Runtime::SupportCode.new(nil, false)
      @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

40 entries across 38 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/lib/cucumber/step_definitions.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/lib/cucumber/step_definitions.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/lib/cucumber/step_definitions.rb
cucumber-2.0.2 lib/cucumber/step_definitions.rb
cucumber-2.0.1 lib/cucumber/step_definitions.rb
cucumber-1.3.20 lib/cucumber/step_definitions.rb
cucumber-2.0.0 lib/cucumber/step_definitions.rb
cucumber-2.0.0.rc.5 lib/cucumber/step_definitions.rb
cucumber-1.3.19 lib/cucumber/step_definitions.rb
cucumber-2.0.0.rc.4 lib/cucumber/step_definitions.rb
cucumber-2.0.0.rc.3 lib/cucumber/step_definitions.rb
cucumber-2.0.0.rc.2 lib/cucumber/step_definitions.rb
cucumber-2.0.0.rc.1 lib/cucumber/step_definitions.rb
cucumber-1.3.18 lib/cucumber/step_definitions.rb
cucumber-2.0.0.beta.5 lib/cucumber/step_definitions.rb
cucumber-2.0.0.beta.4 lib/cucumber/step_definitions.rb
cucumber-2.0.0.beta.3 lib/cucumber/step_definitions.rb
cucumber-1.3.17 lib/cucumber/step_definitions.rb
cucumber-2.0.0.beta.2 lib/cucumber/step_definitions.rb
cucumber-2.0.0.beta.1 lib/cucumber/step_definitions.rb