lib/mutant/cli.rb in mutant-0.5.21 vs lib/mutant/cli.rb in mutant-0.5.22
- old
+ new
@@ -178,31 +178,28 @@
@debug = @fail_fast = @zombie = false
@expected_coverage = 100.0
@strategy = Strategy::Null.new
@cache = Mutant::Cache.new
parse(arguments)
- config # trigger lazyness now
- end
-
- # Return config
- #
- # @return [Config]
- #
- # @api private
- #
- def config
- Config.new(
+ @config = Config.new(
cache: @cache,
zombie: @zombie,
debug: @debug,
matcher: @builder.matcher,
strategy: @strategy,
fail_fast: @fail_fast,
reporter: Reporter::CLI.new($stdout),
expected_coverage: @expected_coverage
)
end
- memoize :config
+
+ # Return config
+ #
+ # @return [Config]
+ #
+ # @api private
+ #
+ attr_reader :config
private
# Parse the command-line options
#