Sha256: aa3927a2f62918254e18d47bdf8de8f6799e5a68a30ecd6cf2dcb84880593e4f
Contents?: true
Size: 858 Bytes
Versions: 3
Compression:
Stored size: 858 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', 'pages'] } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lucid-0.3.3 | lib/lucid/configuration.rb |
lucid-0.3.0 | lib/lucid/configuration.rb |
lucid-0.2.1 | lib/lucid/configuration.rb |