Sha256: 60aad294767d7ce35e4c11d47b0b63db997d4ee347c79c893428fe9313d05917

Contents?: true

Size: 408 Bytes

Versions: 11

Compression:

Stored size: 408 Bytes

Contents

module Lucid
  class StepDefinitions
    def initialize(configuration = Configuration.default)
      configuration = Configuration.parse(configuration)
      @orchestrator = Runtime::Orchestrator.new(nil, false)
      @orchestrator.load_files_from_paths(configuration.autoload_code_paths)
    end

    def to_json
      @orchestrator.step_definitions.map{|stepdef| stepdef.to_hash}.to_json
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lucid-0.3.3 lib/lucid/step_definitions.rb
lucid-0.3.0 lib/lucid/step_definitions.rb
lucid-0.2.1 lib/lucid/step_definitions.rb
lucid-0.2.0 lib/lucid/step_definitions.rb
lucid-0.1.1 lib/lucid/step_definitions.rb
lucid-0.1.0 lib/lucid/step_definitions.rb
lucid-0.0.9 lib/lucid/step_definitions.rb
lucid-0.0.8 lib/lucid/step_definitions.rb
lucid-0.0.7 lib/lucid/step_definitions.rb
lucid-0.0.6 lib/lucid/step_definitions.rb
lucid-0.0.5 lib/lucid/step_definitions.rb