Class: Numeric

Inherits:
Object show all
Defined in:
opal/stdlib/json.rb,
opal/stdlib/native.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject


171
172
173
# File 'opal/stdlib/json.rb', line 171

def to_json
  `self.toString()`
end

#to_nObject


352
353
354
# File 'opal/stdlib/native.rb', line 352

def to_n
  `self.valueOf()`
end