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



123
124
125
# File 'opal/stdlib/json.rb', line 123

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