Class: Evilution::CLI::ParsedArgs

Inherits:
Struct
  • Object
show all
Defined in:
lib/evilution/cli/parsed_args.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



4
5
6
# File 'lib/evilution/cli/parsed_args.rb', line 4

def command
  @command
end

#filesObject

Returns the value of attribute files

Returns:

  • (Object)

    the current value of files



4
5
6
# File 'lib/evilution/cli/parsed_args.rb', line 4

def files
  @files
end

#line_rangesObject

Returns the value of attribute line_ranges

Returns:

  • (Object)

    the current value of line_ranges



4
5
6
# File 'lib/evilution/cli/parsed_args.rb', line 4

def line_ranges
  @line_ranges
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/evilution/cli/parsed_args.rb', line 4

def options
  @options
end

#parse_errorObject

Returns the value of attribute parse_error

Returns:

  • (Object)

    the current value of parse_error



4
5
6
# File 'lib/evilution/cli/parsed_args.rb', line 4

def parse_error
  @parse_error
end

#stdin_errorObject

Returns the value of attribute stdin_error

Returns:

  • (Object)

    the current value of stdin_error



4
5
6
# File 'lib/evilution/cli/parsed_args.rb', line 4

def stdin_error
  @stdin_error
end