Class: Boolean

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

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



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

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

#to_nObject



429
430
431
# File 'opal/stdlib/native.rb', line 429

def to_n
  `self.valueOf()`
end