Class: JS::Object

Inherits:
Object
  • Object
show all
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_rbObject



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