class String

Public Instance Methods

to_js → JS::Object click to toggle source

Returns self as a JS::Object.

static VALUE _rb_js_string_to_js(VALUE obj) {
  rb_js_abi_host_string_t abi_str;
  rstring_to_abi_string(obj, &abi_str);
  return jsvalue_s_new(rb_js_abi_host_string_to_js_string(&abi_str));
}