Method: OmfEc::ExperimentProperty#+

Defined in:
lib/omf_ec/experiment_property.rb

#+(right) ⇒ Object

Addition operator for Integer, Float, and String properties



210
211
212
213
214
215
216
217
218
# File 'lib/omf_ec/experiment_property.rb', line 210

def +(right)
  if @value.kind_of?(Integer) || @value.kind_of?(Float) || @value.kind_of?(String)
    return (@value + right)
  else
    raise OEDLCommandException.new("+", "Illegal operation, "+
      "The value of Experiment Property '#{@name}' does not support addition "+
      "(current value is of type #{value.class})")
  end
end