class Proc

Public Instance Methods

to_js → JS::Object click to toggle source

Returns self as a JS::Object.

static VALUE _rb_js_proc_to_js(VALUE obj) {
#if JS_ENABLE_COMPONENT_MODEL
  rb_abi_stage_rb_value_to_js(obj);
  return jsvalue_s_new(ruby_js_js_runtime_proc_to_js_function());
#else
  rb_abi_lend_object(obj);
  return jsvalue_s_new(rb_js_abi_host_proc_to_js_function((uint32_t)obj));
#endif
}