Class: Evilution::CLI::ParsedArgs
- Inherits:
-
Struct
- Object
- Struct
- Evilution::CLI::ParsedArgs
- Defined in:
- lib/evilution/cli/parsed_args.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#files ⇒ Object
Returns the value of attribute files.
-
#line_ranges ⇒ Object
Returns the value of attribute line_ranges.
-
#options ⇒ Object
Returns the value of attribute options.
-
#parse_error ⇒ Object
Returns the value of attribute parse_error.
-
#stdin_error ⇒ Object
Returns the value of attribute stdin_error.
Instance Method Summary collapse
-
#initialize(command:, options: {}, files: [], line_ranges: {}, stdin_error: nil, parse_error: nil) ⇒ ParsedArgs
constructor
A new instance of ParsedArgs.
Constructor Details
#initialize(command:, options: {}, files: [], line_ranges: {}, stdin_error: nil, parse_error: nil) ⇒ ParsedArgs
Returns a new instance of ParsedArgs.
8 9 10 |
# File 'lib/evilution/cli/parsed_args.rb', line 8 def initialize(command:, options: {}, files: [], line_ranges: {}, stdin_error: nil, parse_error: nil) super end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command
4 5 6 |
# File 'lib/evilution/cli/parsed_args.rb', line 4 def command @command end |
#files ⇒ Object
Returns the value of attribute files
4 5 6 |
# File 'lib/evilution/cli/parsed_args.rb', line 4 def files @files end |
#line_ranges ⇒ Object
Returns the value of attribute line_ranges
4 5 6 |
# File 'lib/evilution/cli/parsed_args.rb', line 4 def line_ranges @line_ranges end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/evilution/cli/parsed_args.rb', line 4 def @options end |
#parse_error ⇒ Object
Returns the value of attribute parse_error
4 5 6 |
# File 'lib/evilution/cli/parsed_args.rb', line 4 def parse_error @parse_error end |
#stdin_error ⇒ Object
Returns the value of attribute stdin_error
4 5 6 |
# File 'lib/evilution/cli/parsed_args.rb', line 4 def stdin_error @stdin_error end |