Method: OmfEc::ExperimentProperty#-
- Defined in:
- lib/omf_ec/experiment_property.rb
#-(right) ⇒ Object
Substraction operator for Integer and Float properties
199 200 201 202 203 204 205 206 207 |
# File 'lib/omf_ec/experiment_property.rb', line 199 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 |