Class: RubocopPr::Options
- Inherits:
-
Object
- Object
- RubocopPr::Options
- Defined in:
- lib/rubocop_pr/options.rb
Overview
Parse the options from the command line
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args) ⇒ Options
constructor
A new instance of Options.
- #parse ⇒ Object
Constructor Details
#initialize(args) ⇒ Options
Returns a new instance of Options.
8 9 10 11 |
# File 'lib/rubocop_pr/options.rb', line 8 def initialize(args) @args = args @options = OpenStruct.new end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/rubocop_pr/options.rb', line 6 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/rubocop_pr/options.rb', line 6 def @options end |
Instance Method Details
#parse ⇒ Object
13 14 15 16 |
# File 'lib/rubocop_pr/options.rb', line 13 def parse build_parser.parse!(args) end |