Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#to_js ⇒ JS::Object
Returns
self
as a JS::Object.
Instance Method Details
#to_js ⇒ JS::Object
Returns self
as a JS::Object.
526 527 528 529 530 531 532 533 534 |
# File 'ext/js/js-core.c', line 526 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 } |