Class: Matrixeval::CommandLine::ParseInitArguments

Inherits:
Object
  • Object
show all
Defined in:
lib/matrixeval/command_line/parse_init_arguments.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_argumentsObject (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

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/matrixeval/command_line/parse_init_arguments.rb', line 10

def options
  @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

#callObject



17
18
19
20
# File 'lib/matrixeval/command_line/parse_init_arguments.rb', line 17

def call
  parse!
  options
end