Method: OmfEc::ExperimentProperty#*
- Defined in:
- lib/omf_ec/experiment_property.rb
#*(right) ⇒ Object
Multiplication operator for Integer and Float properties
188 189 190 191 192 193 194 195 196 |
# File 'lib/omf_ec/experiment_property.rb', line 188 def *(right) if @value.kind_of?(Integer) || @value.kind_of?(Float) return (@value * right) else raise OEDLCommandException.new("*", "Illegal operation, "+ "the value of Experiment Property '#{@name}' is not numerical "+ "(current value is of type #{value.class})") end end |