Class: Boolean
Instance Method Summary collapse
- #to_json ⇒ Object
-
#to_n ⇒ Object
Public: Returns the internal JavaScript value (with
valueOf
).
Instance Method Details
#to_json ⇒ Object
136 137 138 |
# File 'opal/stdlib/json.rb', line 136 def to_json `(self == true) ? 'true' : 'false'` end |
#to_n ⇒ Object
Public: Returns the internal JavaScript value (with valueOf
).
505 506 507 |
# File 'opal/stdlib/native.rb', line 505 def to_n `self.valueOf()` end |