Class: Matrixeval::CommandLine::ParseContextArguments

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#optionsObject (readonly)

Returns the value of attribute options.



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

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

#callObject



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

def call
  parse!
  options
end