Class: NilClass

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



156
157
158
# File 'opal/stdlib/json.rb', line 156

def as_json
  self
end

#to_jsonObject



160
161
162
# File 'opal/stdlib/json.rb', line 160

def to_json
  'null'
end

#to_nObject



424
425
426
# File 'opal/stdlib/native.rb', line 424

def to_n
  `null`
end