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