Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#as_jsonObject

FIXME: remove this



167
168
169
# File 'opal/stdlib/json.rb', line 167

def as_json
  self
end

#to_jsonObject



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

def to_json
  `self.toString()`
end

#to_nObject



335
336
337
# File 'opal/stdlib/native.rb', line 335

def to_n
  `self.valueOf()`
end