Class: Numeric

Inherits:
Object show all
Defined in:
/Users/elia/Code/opal-docs/opal/stdlib/json.rb,
/Users/elia/Code/opal-docs/opal/stdlib/native.rb

Direct Known Subclasses

Date::Infinity

Instance Method Summary collapse

Instance Method Details

#to_jsonObject


171
172
173
# File '/Users/elia/Code/opal-docs/opal/stdlib/json.rb', line 171

def to_json
  `self.toString()`
end

#to_nObject

Public: Returns the internal JavaScript value (with valueOf).


439
440
441
# File '/Users/elia/Code/opal-docs/opal/stdlib/native.rb', line 439

def to_n
  `self.valueOf()`
end