Class: Consoler::Arguments
- Inherits:
-
Object
- Object
- Consoler::Arguments
- Defined in:
- lib/consoler/arguments.rb
Overview
Arguments
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
readonly
Raw arguments.
Instance Method Summary collapse
-
#initialize(args) ⇒ Arguments
constructor
A new instance of Arguments.
-
#match(options) ⇒ Hash?
Match arguments against options.
Constructor Details
#initialize(args) ⇒ Arguments
Returns a new instance of Arguments.
12 13 14 |
# File 'lib/consoler/arguments.rb', line 12 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Array<String> (readonly)
Raw arguments
9 10 11 |
# File 'lib/consoler/arguments.rb', line 9 def args @args end |