Class: Boolean

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

Instance Method Summary collapse

Instance Method Details

#as_json ⇒ Object

FIXME: remove this



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

def as_json
  self
end

#to_json ⇒ Object



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

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

#to_n ⇒ Object



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

def to_n
  `self.valueOf()`
end