Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/matlab/driver/native/conversions.rb
Instance Method Summary collapse
-
#to_ruby ⇒ Object
Converts the value to nil if it is a MATLAB NaN.
Instance Method Details
#to_ruby ⇒ Object
Converts the value to nil if it is a MATLAB NaN
38 39 40 |
# File 'lib/matlab/driver/native/conversions.rb', line 38 def to_ruby to_s == nil.to_matlab.to_s ? nil : self end |