Class: Matrixeval::CommandLine::ParseContextArguments
- Inherits:
-
Object
- Object
- Matrixeval::CommandLine::ParseContextArguments
- Defined in:
- lib/matrixeval/command_line/parse_context_arguments.rb
Instance Attribute Summary collapse
-
#context_arguments ⇒ Object
readonly
Returns the value of attribute context_arguments.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(context_arguments) ⇒ ParseContextArguments
constructor
A new instance of ParseContextArguments.
Constructor Details
#initialize(context_arguments) ⇒ ParseContextArguments
Returns a new instance of ParseContextArguments.
12 13 14 15 |
# File 'lib/matrixeval/command_line/parse_context_arguments.rb', line 12 def initialize(context_arguments) @context_arguments = context_arguments @options = {} end |
Instance Attribute Details
#context_arguments ⇒ Object (readonly)
Returns the value of attribute context_arguments.
10 11 12 |
# File 'lib/matrixeval/command_line/parse_context_arguments.rb', line 10 def context_arguments @context_arguments end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/matrixeval/command_line/parse_context_arguments.rb', line 10 def @options end |
Class Method Details
.call(context_arguments) ⇒ Object
5 6 7 |
# File 'lib/matrixeval/command_line/parse_context_arguments.rb', line 5 def call(context_arguments) new(context_arguments).call end |
Instance Method Details
#call ⇒ Object
17 18 19 20 |
# File 'lib/matrixeval/command_line/parse_context_arguments.rb', line 17 def call parse! end |