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 int
cloexecPipe
(ThreadContext context, int[] pipes) Equivalent toMRI.rb_cloexec_pipe(ThreadContext, int[])
.static void
fdFixCloexec
(ThreadContext context, int fd) Equivalent to MRI#rb_maygvl_fd_fix_cloexec(ThreadContext, int).static int
newPipe
(ThreadContext context, int[] pipes) Equivalent toMRI.rb_pipe(ThreadContext, int[])
.static <T> T
rescueTypeError
(ThreadContext context, T dflt, Supplier<T> func) Equivalent to MRI#rb_rescue_typeerror(ThreadContext, Object, Supplier).static IRubyObject
sysFailWithPath
(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:
-