Sha256: b87c4d45dd1e202d3dbee8b7e30c62860a2f1cb70a38b6612f6e48166be84e9f
Contents?: true
Size: 269 Bytes
Versions: 3
Compression:
Stored size: 269 Bytes
Contents
# frozen_string_literal: true def alert(val) val = val.to_s escaped_val = val.gsub("'", "\\\\'").gsub("\n", "\\n") JS.eval("alert('#{escaped_val}')") end # dummy object to allow code parity with Opal when using Native Object with wasm def Native(obj) obj end
Version data entries
3 entries across 3 versions & 1 rubygems