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



440
441
442
# File 'opal/stdlib/native.rb', line 440

def to_n
  `self.valueOf()`
end