Sha256: 604354b43e0a3f5dfd12e374fc53c83edaf66288682d8dc5449b3d73487226b6

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

module Lucid
  class StepDefinitions
    def initialize(context = Context.default)
      context = Context.parse(context)
      @orchestrator = ContextLoader::Orchestrator.new(nil, false)
      @orchestrator.load_files_from_paths(context.autoload_code_paths)
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lucid-0.5.1 lib/lucid/step_definitions.rb
lucid-0.4.1 lib/lucid/step_definitions.rb
lucid-0.4.0 lib/lucid/step_definitions.rb