Package org.jruby.api
Class API
java.lang.Object
org.jruby.api.API
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcloexecPipe(ThreadContext context, int[] pipes) Equivalent toMRI.rb_cloexec_pipe(ThreadContext, int[]).static voidfdFixCloexec(ThreadContext context, int fd) Equivalent to MRI#rb_maygvl_fd_fix_cloexec(ThreadContext, int).static intnewPipe(ThreadContext context, int[] pipes) Equivalent toMRI.rb_pipe(ThreadContext, int[]).static <T> TrescueTypeError(ThreadContext context, T dflt, Supplier<T> func) Equivalent to MRI#rb_rescue_typeerror(ThreadContext, Object, Supplier).static IRubyObjectsysFailWithPath(ThreadContext context, String path) Equivalent to rb_sys_fail_path(ThreadContext, String).
-
Constructor Details
-
API
public API()
-
-
Method Details
-
sysFailWithPath
Equivalent to rb_sys_fail_path(ThreadContext, String).- Parameters:
context-path-- Returns:
-
newPipe
Equivalent toMRI.rb_pipe(ThreadContext, int[]).- Parameters:
context-pipes-- Returns:
-
cloexecPipe
Equivalent toMRI.rb_cloexec_pipe(ThreadContext, int[]).- Parameters:
context-pipes-- Returns:
-
fdFixCloexec
Equivalent to MRI#rb_maygvl_fd_fix_cloexec(ThreadContext, int).- Parameters:
context-fd-
-
rescueTypeError
Equivalent to MRI#rb_rescue_typeerror(ThreadContext, Object, Supplier).- Type Parameters:
T-- Parameters:
context-dflt-func-- Returns:
-