class Cucumber::Configuration
The base class for configuring settings for a Cucumber run.
Public Class Methods
default()
click to toggle source
# File lib/cucumber/configuration.rb, line 4 def self.default new end
new(user_options = {})
click to toggle source
# File lib/cucumber/configuration.rb, line 13 def initialize(user_options = {}) @options = default_options.merge(user_options) end
parse(argument)
click to toggle source
# File lib/cucumber/configuration.rb, line 8 def self.parse(argument) return new(argument) if argument.is_a?(Hash) argument end
Public Instance Methods
autoload_code_paths()
click to toggle source
# File lib/cucumber/configuration.rb, line 37 def autoload_code_paths @options[:autoload_code_paths] end
dry_run?()
click to toggle source
# File lib/cucumber/configuration.rb, line 17 def dry_run? @options[:dry_run] end
expand?()
click to toggle source
# File lib/cucumber/configuration.rb, line 29 def expand? @options[:expand] end
guess?()
click to toggle source
# File lib/cucumber/configuration.rb, line 21 def guess? @options[:guess] end
paths()
click to toggle source
# File lib/cucumber/configuration.rb, line 33 def paths @options[:paths] end
snippet_type()
click to toggle source
# File lib/cucumber/configuration.rb, line 41 def snippet_type @options[:snippet_type] end
strict?()
click to toggle source
# File lib/cucumber/configuration.rb, line 25 def strict? @options[:strict] end
Private Instance Methods
default_options()
click to toggle source
# File lib/cucumber/configuration.rb, line 47 def default_options { :autoload_code_paths => ['features/support', 'features/step_definitions'] } end