We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f407c commit 5564b6fCopy full SHA for 5564b6f
lib/skunk/cli/options.rb
@@ -20,8 +20,10 @@ def parse
20
self
21
end
22
23
+ # :reek:NilCheck
24
def output_stream
- @argv_options.output_filename.nil? ? $stdout : File.open(@argv_options.output_filename, "w")
25
+ output_filename = @argv_options.output_filename
26
+ output_filename.nil? ? $stdout : File.open(output_filename, "w")
27
28
29
# :reek:NilCheck
lib/skunk/cli/options/argv.rb
@@ -9,7 +9,7 @@ class Options
9
# Extends RubyCritic::Cli::Options::Argv to parse a subset of the
10
# parameters accepted by RubyCritic
11
class Argv < RubyCritic::Cli::Options::Argv
12
- attr_accessor :output_filename
+ attr_reader :output_filename
13
14
def initialize(argv)
15
super
0 commit comments