class Cucumber::StepDefinitions

Public Class Methods

new(configuration = Configuration.default) click to toggle source
# File lib/cucumber/step_definitions.rb, line 4
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

Public Instance Methods

to_json() click to toggle source
# File lib/cucumber/step_definitions.rb, line 10
def to_json
  @support_code.step_definitions.map(&:to_hash).to_json
end