Sha256: 4fbfe38ee6d71f8b60f747c16c235ddff9b5c3c5848715b08127e8ea52afa1b1
Contents?: true
Size: 849 Bytes
Versions: 8
Compression:
Stored size: 849 Bytes
Contents
module Lucid # The base class for configuring settings for a Lucid run. class Configuration def self.default new end def self.parse(argument) return new(argument) if argument.is_a?(Hash) argument end def initialize(user_options = {}) @options = default_options.merge(user_options) end def dry_run? @options[:dry_run] end def guess? @options[:guess] end def strict? @options[:strict] end def expand? @options[:expand] end def spec_source @options[:spec_source] end def autoload_code_paths @options[:autoload_code_paths] end def matcher_type @options[:matcher_type] end private def default_options { :autoload_code_paths => ['common', 'steps'] } end end end
Version data entries
8 entries across 8 versions & 1 rubygems