Class: ParameterDictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/rimageanalysistools/create_parameters.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ String

Adds hash-like getter access to ParameterDictionary objects

Parameters:

  • key

    an object whose to_s method returns the name of a parameter

Returns:

  • (String)

    the value of the parameter as returned by ParameterDictionary#getValueForKey



40
41
42
# File 'lib/rimageanalysistools/create_parameters.rb', line 40

def [](key)
  getValueForKey(key.to_s)
end

#[]=(key, value) ⇒ void

This method returns an undefined value.

Adds hash-like setter access to ParameterDictionary objects

Parameters:

  • key

    an object whose to_s method returns the name of a parameter

  • value

    an object whose to_s method returns the parameter value being set



52
53
54
# File 'lib/rimageanalysistools/create_parameters.rb', line 52

def []=(key, value)
  setValueForKey(key.to_s, value.to_s)
end