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



150
151
152
# File 'opal/stdlib/json.rb', line 150

def to_json
  `self.toString()`
end

#to_nObject



363
364
365
# File 'opal/stdlib/native.rb', line 363

def to_n
  `self.valueOf()`
end