Sha256: 46df08d20a1e756c83d97d28e1e580c0acf66e549bb6d0c484ef7a7f783cc961

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

##
# The {Cmd::ARGV} module provides an initialize method, and an
# attribute reader for an array of strings (usually ARGV). Classes
# who include the {Cmd Cmd} module indirectly include this module as
# well.
module Cmd::ARGV
  ##
  # @return [Array<String>]
  #  Returns an array of strings.
  attr_reader :argv

  ##
  # @param [Array<String>] argv
  #  An array of strings.
  def initialize(argv)
    @argv = argv.dup
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cmd.rb-0.3.3 lib/cmd/mixins/argv.rb
cmd.rb-0.3.2 lib/cmd/mixins/argv.rb