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);
rb_js_abi_host_own_js_abi_value_t js_str =
rb_js_abi_host_string_to_js_string(&abi_str);
rb_js_abi_host_string_free(&abi_str);
return jsvalue_s_new(js_str);
}