~ubuntu-branches/ubuntu/wily/ruby-cri/wily

« back to all changes in this revision

Viewing changes to lib/cri/argument_array.rb

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2015-05-25 00:48:53 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20150525004853-vthmf7zp9j74ahry
Tags: 2.7.0-1
* Imported Upstream version 2.7.0
* refresh privacy-breach.patch
* bump Standards-Version to 3.9.6 (no changes needed)
* use the rake method to run the tests
* invoke directly yard instead of using upstream Rakefile to build the
  documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# encoding: utf-8
2
2
 
3
3
module Cri
4
 
 
5
4
  # Represents an array of arguments. It is an array that strips separator
6
5
  # arguments (`--`) but provides a `#raw` method to get the raw arguments
7
6
  # array, i.e. an array that includes the separator `--` arguments.
8
7
  class ArgumentArray < Array
9
 
 
10
8
    # Initializes the array using the given raw arguments.
11
9
    #
12
10
    # @param [Array<String>] raw_arguments A list of raw arguments, i.e.
21
19
    def raw
22
20
      @raw_arguments
23
21
    end
24
 
 
25
22
  end
26
 
 
27
23
end