Class: Proc

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#to_jsJS::Object

Returns self as a JS::Object.



513
514
515
516
517
518
519
520
521
# File 'ext/js/js-core.c', line 513

static VALUE _rb_js_proc_to_js(VALUE obj) {
#ifdef 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
}