Class: Boolean

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



130
131
132
# File 'opal/stdlib/json.rb', line 130

def as_json
  self
end

#to_jsonObject



134
135
136
# File 'opal/stdlib/json.rb', line 134

def to_json
  `(self == true) ? 'true' : 'false'`
end

#to_nObject



412
413
414
# File 'opal/stdlib/native.rb', line 412

def to_n
  `self.valueOf()`
end