Class Cri::ArgumentArray
In: lib/cri/argument_array.rb
Parent: Array

Represents an array of arguments. It is an array that strips separator arguments (`—`) but provides a `raw` method to get the raw arguments array, i.e. an array that includes the separator `—` arguments.

Methods

new   raw  

Public Class methods

Initializes the array using the given raw arguments.

@param [Array<String>] raw_arguments A list of raw arguments, i.e.

  including any separator arguments (`--`).

Public Instance methods

@return [Array<String>] The arguments, including any separator arguments

  (`--`)

[Validate]