| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ByteList | |
| private static final byte[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final int | |
| protected String | path
Deprecated
|
| pack-priv static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final long | |
| pack-priv static final ByteList | |
| private static final String[] | |
| private static final Pattern | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | absolute_path(ThreadContext context, IRubyObject recv, IRubyObject path)
Converts a pathname to an absolute pathname. |
| public static IRubyObject | absolute_path(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject dir)
Converts a pathname to an absolute pathname. |
| public static IRubyObject | |
| public static IRubyObject | |
| private static String | |
| pack-priv static String | |
| private static StringBuilder | |
| public IRubyObject | |
| public static IRubyObject | |
| public static RubyString | |
| public static RubyString | |
| public static IRubyObject | |
| private static RubyString | |
| public IRubyObject | |
| public static IRubyObject | |
| public static String | |
| private static CharSequence | |
| private static String | |
| private static String | |
| private void | |
| private static RubyString | |
| public IRubyObject | |
| public static IRubyObject | |
| private static int | |
| public IRubyObject | |
| public static IRubyObject | |
| private static String | |
| private static long[] | convertTimespecToTimeval(long[] timespec)
Converts a timespec (array of 2 longs: seconds and nanoseconds from epoch) into a timeval (array of 2 longs: seconds and microseconds from epoch). |
| private static String | countSlashes(String stringToCheck)
Returns a string consisting of |
| public static RubyClass | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| private static boolean | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static String | |
| public static String | |
| public static IRubyObject | |
| private static RubyString | |
| private static RubyString | |
| public static IRubyObject | Returns: Resulting absolute path as a StringConverts a pathname to an absolute pathname. |
| public static IRubyObject | Returns: Resulting absolute path as a StringConverts a pathname to an absolute pathname. |
| public static IRubyObject | |
| public static String | expandPath(ThreadContext context, String relativePath, Encoding[] enc, String cwd, boolean expandUser, boolean canonicalize)
|
| private static RubyString | expandPathInternal(ThreadContext context, IRubyObject arg0, boolean expandUser, boolean canonicalize)
|
| private static RubyString | expandPathInternal(ThreadContext context, IRubyObject _path, IRubyObject _wd, boolean expandUser, boolean canonicalize)
|
| pack-priv static RubyString | expandPathInternal(ThreadContext context, RubyString path, RubyString wd, boolean expandUser, boolean canonicalize)
|
| private static RubyString | expandPathInternal(ThreadContext context, IRubyObject[] args, boolean expandUser, boolean canonicalize)
Deprecated
|
| public static String | Returns: Expanded pathPath to check path)This method checks a path, and if it starts with ~, then it expands the path to the absolute path of the user's home directory. |
| public static String | |
| public static IRubyObject | Returns: Extension, including the dot, or an empty stringPath to get extension name of arg)Returns the extension name of the file. |
| private static long[] | extractTimespec(ThreadContext context, IRubyObject value)
Extract a timespec (an array of 2 longs: seconds and nanoseconds from epoch) from an IRubyObject. |
| public static JRubyFile | |
| public IRubyObject | fileOpenGeneric(ThreadContext context, IRubyObject filename, int oflags, int fmode, IOEncodable convConfig, int perm)
|
| protected static RubyString | |
| public static FileResource | fileResource(ThreadContext
current thread context context, IRubyObject the string or IO to use for the path pathOrFile)Get the fully-qualified JRubyFile object for the path, taking into account the runtime's current directory. |
| public static FileResource | fileResource(IRubyObject
the string or IO to use for the path pathOrFile)
Deprecated
since 9.4-.
Get the fully-qualified JRubyFile object for the path, taking into account the runtime's current directory. |
| public IRubyObject | |
| public static IRubyObject | fnmatch(ThreadContext context, IRubyObject recv, IRubyObject _pattern, IRubyObject _path)
Returns true if path matches against pattern The pattern is not a regular expression; instead it follows rules similar to shell filename globbing. |
| public static IRubyObject | fnmatch(ThreadContext context, IRubyObject recv, IRubyObject _pattern, IRubyObject _path, IRubyObject _flags)
|
| public static IRubyObject | |
| private static RubyBoolean | |
| public static IRubyObject | |
| public static RubyString | |
| public static String | |
| public static String | |
| private static int | |
| public static final FileTime | |
| private static String | |
| public static ZipEntry | |
| public static ZipEntry | |
| public Encoding | |
| private static ZipEntry | |
| private static String | |
| private static int | |
| pack-priv final long | |
| public IRubyObject | |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public static RubyString | |
| private static boolean | joinImpl(final StringBuilder buffer, final String separator, ThreadContext context, IRubyObject recv, RubyArray<T extends IRubyObject> args)
|
| private static StringBuilder | joinImplInspecting(final String separator, ThreadContext context, IRubyObject recv, RubyArray<T extends IRubyObject> parent, RubyArray<T extends IRubyObject> array)
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| protected IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| protected IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| private static RubyString | |
| public static IRubyObject | |
| private static String | |
| public void | |
| private static JavaSites. | |
| public IRubyObject | |
| public static RubyArray | |
| public static String[] | |
| public static boolean | |
| pack-priv static boolean | |
| public static IRubyObject | |
| public static IRubyObject | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public String | toString()
Overrides org. The default toString method is just a wrapper that calls the Ruby "to_s" method. |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | truncate19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject length)
Deprecated
|
| private static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject |