Class: JS::Object
- Inherits:
-
Object
- Object
- JS::Object
- Defined in:
- lib/bormashino/ext/js.rb
Overview
extends ruby.wasm JS::Object to intract with JS
Instance Method Summary collapse
Instance Method Details
#to_rb ⇒ Object
6 7 8 |
# File 'lib/bormashino/ext/js.rb', line 6 def to_rb JSON.parse(JS.global[:JSON].call(:stringify, self).to_s) end |