PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
U:RDoc::AnyMethod[iI" test:ETI"Kernel#test;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"~Performs a test on one or both of the <i>filesystem entities</i> at the given paths <code>path0</code> and <code>path1</code>:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"gEach path <code>path0</code> or <code>path1</code> points to a file, directory, device, pipe, etc.;To;;0; [o; ; [I"9Character <code>char</code> selects a specific test.;To; ; [I"The tests:;To;;; ;[ o;;0; [o; ; [I"�Each of these tests operates only on the entity at <code>path0</code>, and returns <code>true</code> or <code>false</code>; for a non-existent entity, returns <code>false</code> (does not raise exception):;Fo:RDoc::Markup::Table:@header[I"Character;FI" Test;F:@align[:center: left: @body[[I"<tt>'b'</tt>;FI"*Whether the entity is a block device.;F[I"<tt>'c'</tt>;FI".Whether the entity is a character device.;F[I"<tt>'d'</tt>;FI"'Whether the entity is a directory.;F[I"<tt>'e'</tt>;FI".Whether the entity is an existing entity.;F[I"<tt>'f'</tt>;FI"4Whether the entity is an existing regular file.;F[I"<tt>'g'</tt>;FI",Whether the entity's setgid bit is set.;F[I"<tt>'G'</tt>;FI"CWhether the entity's group ownership is equal to the caller's.;F[I"<tt>'k'</tt>;FI",Whether the entity's sticky bit is set.;F[I"<tt>'l'</tt>;FI"+Whether the entity is a symbolic link.;F[I"<tt>'o'</tt>;FI"?Whether the entity is owned by the caller's effective uid.;F[I"<tt>'O'</tt>;FI"FLike <tt>'o'</tt>, but uses the real uid (not the effective uid).;F[I"<tt>'p'</tt>;FI"6Whether the entity is a FIFO device (named pipe).;F[I"<tt>'r'</tt>;FI"FWhether the entity is readable by the caller's effective uid/gid.;F[I"<tt>'R'</tt>;FI"NLike <tt>'r'</tt>, but uses the real uid/gid (not the effective uid/gid).;F[I"<tt>'S'</tt>;FI"$Whether the entity is a socket.;F[I"<tt>'u'</tt>;FI",Whether the entity's setuid bit is set.;F[I"<tt>'w'</tt>;FI"FWhether the entity is writable by the caller's effective uid/gid.;F[I"<tt>'W'</tt>;FI"NLike <tt>'w'</tt>, but uses the real uid/gid (not the effective uid/gid).;F[I"<tt>'x'</tt>;FI"HWhether the entity is executable by the caller's effective uid/gid.;F[I"<tt>'X'</tt>;FI"NLike <tt>'x'</tt>, but uses the real uid/gid (not the effective uid/git).;F[I"<tt>'z'</tt>;FI"5Whether the entity exists and is of length zero.;Fo;;0; [o; ; [I"hThis test operates only on the entity at <code>path0</code>, and returns an integer size or +nil+:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'s'</tt>;FI"aReturns positive integer size if the entity exists and has non-zero length, +nil+ otherwise.;Fo;;0; [o; ; [I"�Each of these tests operates only on the entity at <code>path0</code>, and returns a Time object; raises an exception if the entity does not exist:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'A'</tt>;FI"%Last access time for the entity.;F[I"<tt>'C'</tt>;FI"%Last change time for the entity.;F[I"<tt>'M'</tt>;FI"+Last modification time for the entity.;Fo;;0; [o; ; [I"Each of these tests operates on the modification time (<code>mtime</code>) of each of the entities at <code>path0</code> and <code>path1</code>, and returns a <code>true</code> or <code>false</code>; returns <code>false</code> if either entity does not exist:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'<'</tt>;FI"AWhether the `mtime` at `path0` is less than that at `path1`.;F[I"<tt>'='</tt>;FI"@Whether the `mtime` at `path0` is equal to that at `path1`.;F[I"<tt>'>'</tt>;FI"DWhether the `mtime` at `path0` is greater than that at `path1`.;Fo;;0; [o; ; [I"�This test operates on the content of each of the entities at <code>path0</code> and <code>path1</code>, and returns a <code>true</code> or <code>false</code>; returns <code>false</code> if either entity does not exist:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'-'</tt>;FI"2Whether the entities exist and are identical.;F: @fileI"file.c;T:0@omit_headings_from_table_of_contents_below0I".test(char, path0, path1 = nil) -> object ;T0[ I"(*args);T@�FI"Kernel;TcRDoc::NormalModule00
[+]
..
[-] loop-i.ri
[edit]
[-] Complex-i.ri
[edit]
[-] Pathname-i.ri
[edit]
[-] block_given%3f-i.ri
[edit]
[-] format-i.ri
[edit]
[-] readlines-i.ri
[edit]
[-] chop-i.ri
[edit]
[-] tap-i.ri
[edit]
[-] Hash-i.ri
[edit]
[-] catch-i.ri
[edit]
[-] warn-i.ri
[edit]
[-] exec-i.ri
[edit]
[-] iterator%3f-i.ri
[edit]
[-] Float-i.ri
[edit]
[-] spawn-i.ri
[edit]
[-] require_relative-i.ri
[edit]
[-] yield_self-i.ri
[edit]
[-] __method__-i.ri
[edit]
[-] %60-i.ri
[edit]
[-] caller_locations-i.ri
[edit]
[-] syscall-i.ri
[edit]
[-] printf-i.ri
[edit]
[-] then-i.ri
[edit]
[-] clone-i.ri
[edit]
[-] gem-i.ri
[edit]
[-] global_variables-i.ri
[edit]
[-] set_trace_func-i.ri
[edit]
[-] eval-i.ri
[edit]
[-] exit%21-i.ri
[edit]
[-] String-i.ri
[edit]
[-] autoload-i.ri
[edit]
[-] p-i.ri
[edit]
[-] pp-c.ri
[edit]
[-] pretty_inspect-i.ri
[edit]
[-] class-i.ri
[edit]
[-] __callee__-i.ri
[edit]
[-] srand-i.ri
[edit]
[-] putc-i.ri
[edit]
[-] jj-i.ri
[edit]
[-] system-i.ri
[edit]
[-] trap-i.ri
[edit]
[-] lambda-i.ri
[edit]
[-] caller-i.ri
[edit]
[-] abort-i.ri
[edit]
[-] sprintf-i.ri
[edit]
[-] callcc-i.ri
[edit]
[-] readline-i.ri
[edit]
[-] sleep-i.ri
[edit]
[-] Array-i.ri
[edit]
[-] autoload%3f-i.ri
[edit]
[-] gsub-i.ri
[edit]
[-] proc-i.ri
[edit]
[-] puts-i.ri
[edit]
[-] trace_var-i.ri
[edit]
[-] pp-i.ri
[edit]
[-] rand-i.ri
[edit]
[-] JSON-i.ri
[edit]
[-] chomp-i.ri
[edit]
[-] __dir__-i.ri
[edit]
[-] y-i.ri
[edit]
[-] untrace_var-i.ri
[edit]
[-] gets-i.ri
[edit]
[-] Rational-i.ri
[edit]
[-] at_exit-i.ri
[edit]
[-] fork-i.ri
[edit]
[-] local_variables-i.ri
[edit]
[-] select-i.ri
[edit]
[-] fail-i.ri
[edit]
[-] Integer-i.ri
[edit]
[-] raise-i.ri
[edit]
[-] test-i.ri
[edit]
[-] URI-c.ri
[edit]
[-] exit-i.ri
[edit]
[-] throw-i.ri
[edit]
[-] cdesc-Kernel.ri
[edit]
[-] binding-i.ri
[edit]
[-] j-i.ri
[edit]
[-] frozen%3f-i.ri
[edit]
[-] URI-i.ri
[edit]
[-] load-i.ri
[edit]
[-] open-i.ri
[edit]
[-] sub-i.ri
[edit]
[-] require-i.ri
[edit]
[-] print-i.ri
[edit]