Class: Numeric
Direct Known Subclasses
BigDecimal , Date::Infinity , Float , Integer , Matrix::Scalar , Rational
Instance Method Summary collapse
- #to_json ⇒ Object
-
#to_n ⇒ Object
The internal JavaScript value (with
valueOf).
Instance Method Details
#to_json ⇒ Object
177 178 179
# File 'opal/stdlib/json.rb', line 177 def to_json `self.toString()` end
#to_n ⇒ Object
Returns the internal JavaScript value (with valueOf).
Returns:
-
the internal JavaScript value (with
valueOf).
449 450 451
# File 'opal/stdlib/native.rb', line 449 def to_n `self.valueOf()` end