Class: Parameter::ParameterRepository

Inherits:
RubyUtils::Parameter::BaseParameterRepository
  • Object
show all
Defined in:
lib/parameter/parameter_repository.rb

Overview

Parameter repository storing the valid parameter of the script. #initialize gets the provided parameters and fills a hash which grants access on the provided parameters and their arguments

Instance Method Summary collapse

Instance Method Details

#define_mappingObject (private)

method to define the input string values that will match a given paramter symbol



23
24
25
26
# File 'lib/parameter/parameter_repository.rb', line 23

def define_mapping
  # no additional parameters
  nil
end

#process_argument(arg) ⇒ Object (private)

method to read further argument and process it depending on its content

Parameters:

  • arg (String)

    the given argument



16
17
18
19
20
# File 'lib/parameter/parameter_repository.rb', line 16

def process_argument(arg)
  # no additional paramaeters
  raise_invalid_parameter(arg)
  nil
end