Class: RubyCritic::Cli::Options
- Inherits:
-
Object
- Object
- RubyCritic::Cli::Options
- Defined in:
- lib/rubycritic/cli/options.rb,
lib/rubycritic/cli/options/argv.rb,
lib/rubycritic/cli/options/file.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#argv_options ⇒ Object
readonly
Returns the value of attribute argv_options.
-
#file_options ⇒ Object
readonly
Returns the value of attribute file_options.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
- #parse ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(argv) ⇒ Options
Returns a new instance of Options.
11 12 13 14 |
# File 'lib/rubycritic/cli/options.rb', line 11 def initialize(argv) = Argv.new(argv) = File.new end |
Instance Attribute Details
#argv_options ⇒ Object (readonly)
Returns the value of attribute argv_options.
9 10 11 |
# File 'lib/rubycritic/cli/options.rb', line 9 def end |
#file_options ⇒ Object (readonly)
Returns the value of attribute file_options.
9 10 11 |
# File 'lib/rubycritic/cli/options.rb', line 9 def end |
Instance Method Details
#parse ⇒ Object
16 17 18 19 20 |
# File 'lib/rubycritic/cli/options.rb', line 16 def parse .parse .parse self end |
#to_h ⇒ Object
22 23 24 |
# File 'lib/rubycritic/cli/options.rb', line 22 def to_h .to_h.merge(.to_h) end |