Class: Aspera::Cli::Argument
- Inherits:
-
Object
- Object
- Aspera::Cli::Argument
- Defined in:
- lib/aspera/cli/parser.rb
Overview
Represents a positional (non-option) CLI argument token.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The raw argument value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Argument
constructor
A new instance of Argument.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Argument
Returns a new instance of Argument.
317 318 319 |
# File 'lib/aspera/cli/parser.rb', line 317 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String (readonly)
Returns the raw argument value.
315 316 317 |
# File 'lib/aspera/cli/parser.rb', line 315 def value @value end |
Instance Method Details
#to_s ⇒ Object
321 |
# File 'lib/aspera/cli/parser.rb', line 321 def to_s = @value |