Package org.jruby
Class RubyFileTest
java.lang.Object
org.jruby.RubyFileTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMRI defines the FileTest methods both as module functions on FileTest and as singleton methods on the File class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectblockdev_p(IRubyObject recv, IRubyObject filename) static IRubyObjectchardev_p(IRubyObject recv, IRubyObject filename) static RubyModulecreateFileTestModule(Ruby runtime) static IRubyObjectdirectory_p(Ruby ruby, IRubyObject filename) static IRubyObjectdirectory_p(IRubyObject recv, IRubyObject filename) Deprecated.static IRubyObjectdirectory_p(ThreadContext context, IRubyObject filename) static IRubyObjectdirectory_p(ThreadContext context, IRubyObject recv, IRubyObject filename) static IRubyObjectexecutable_p(IRubyObject recv, IRubyObject filename) static IRubyObjectexecutable_real_p(IRubyObject recv, IRubyObject filename) (package private) static booleanexist(ThreadContext context, RubyString path) static IRubyObjectexist_p(IRubyObject recv, IRubyObject filename) Deprecated.static IRubyObjectexist_p(ThreadContext context, IRubyObject recv, IRubyObject filename) private static booleanexistsOnClasspath(ThreadContext context, String path) static RubyBooleanfile_p(IRubyObject recv, IRubyObject filename) Deprecated.static RubyBooleanfile_p(ThreadContext context, IRubyObject recv, IRubyObject filename) private static RubyFileStatgetRubyFileStat(ThreadContext context, IRubyObject filename) static IRubyObjectgrpowned_p(IRubyObject recv, IRubyObject filename) static IRubyObjectidentical_p(IRubyObject recv, IRubyObject filename1, IRubyObject filename2) private static voidnoFileError(IRubyObject filename) static IRubyObjectowned_p(IRubyObject recv, IRubyObject filename) static IRubyObjectpipe_p(IRubyObject recv, IRubyObject filename) static IRubyObjectreadable_p(IRubyObject recv, IRubyObject filename) Deprecated.static IRubyObjectreadable_p(ThreadContext context, IRubyObject recv, IRubyObject filename) static IRubyObjectrowned_p(IRubyObject recv, IRubyObject filename) static IRubyObjectsetgid_p(IRubyObject recv, IRubyObject filename) static IRubyObjectsetuid_p(IRubyObject recv, IRubyObject filename) static IRubyObjectsize(IRubyObject recv, IRubyObject filename) static IRubyObjectsize(ThreadContext context, IRubyObject recv, IRubyObject filename) static IRubyObjectsize_p(IRubyObject recv, IRubyObject filename) Deprecated.static IRubyObjectsize_p(ThreadContext context, IRubyObject recv, IRubyObject filename) static IRubyObjectsocket_p(IRubyObject recv, IRubyObject filename) static IRubyObjectsticky_p(IRubyObject recv, IRubyObject filename) static RubyBooleansymlink_p(IRubyObject recv, IRubyObject filename) static IRubyObjectworldReadable(ThreadContext context, IRubyObject recv, IRubyObject filename) static IRubyObjectworldWritable(ThreadContext context, IRubyObject recv, IRubyObject filename) static RubyBooleanwritable_p(IRubyObject recv, IRubyObject filename) static RubyBooleanzero_p(IRubyObject recv, IRubyObject filename) Deprecated.static RubyBooleanzero_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
-
Constructor Details
-
RubyFileTest
public RubyFileTest()
-
-
Method Details
-
createFileTestModule
-
blockdev_p
-
chardev_p
-
directory_p
Deprecated. -
directory_p
-
directory_p
public static IRubyObject directory_p(ThreadContext context, IRubyObject recv, IRubyObject filename) -
directory_p
-
executable_p
-
executable_real_p
-
exist_p
Deprecated. -
exist_p
-
exist
-
file_p
Deprecated. -
file_p
-
grpowned_p
-
identical_p
public static IRubyObject identical_p(IRubyObject recv, IRubyObject filename1, IRubyObject filename2) -
owned_p
-
pipe_p
-
readable_p
Deprecated. -
readable_p
-
rowned_p
-
setgid_p
-
setuid_p
-
size
-
size
-
size_p
Deprecated. -
size_p
-
socket_p
-
sticky_p
-
symlink_p
-
writable_p
-
zero_p
Deprecated. -
zero_p
-
worldReadable
public static IRubyObject worldReadable(ThreadContext context, IRubyObject recv, IRubyObject filename) -
worldWritable
public static IRubyObject worldWritable(ThreadContext context, IRubyObject recv, IRubyObject filename) -
getRubyFileStat
-
existsOnClasspath
-
noFileError
-