PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
File
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Locks or unlocks a file according to <em>locking_constant</em> (a logical <em>or</em> of the values in the table below). Returns <tt>false</tt> if <tt>File::LOCK_NB</tt> is specified and the operation would otherwise have blocked. Not available on all platforms. - !ruby/struct:SM::Flow::P body: "Locking constants (in class File):" - !ruby/struct:SM::Flow::VERB body: " LOCK_EX | Exclusive lock. Only one process may hold an\n | exclusive lock for a given file at a time.\n ----------+------------------------------------------------\n LOCK_NB | Don't block when locking. May be combined\n | with other lock options using logical or.\n ----------+------------------------------------------------\n LOCK_SH | Shared lock. Multiple processes may each hold a\n | shared lock for a given file at the same time.\n ----------+------------------------------------------------\n LOCK_UN | Unlock.\n" - !ruby/struct:SM::Flow::P body: "Example:" - !ruby/struct:SM::Flow::VERB body: " File.new("testfile").flock(File::LOCK_UN) #=> 0\n" full_name: File#flock is_singleton: false name: flock params: | file.flock (locking_constant ) => 0 or false visibility: public
[-] makedirs-c.yaml
[edit]
[-] dirname-c.yaml
[edit]
[-] exists%3f-c.yaml
[edit]
[-] atime-i.yaml
[edit]
[-] compare-c.yaml
[edit]
[-] atime-c.yaml
[edit]
[-] symlink%3f-c.yaml
[edit]
[-] move-c.yaml
[edit]
[-] lchmod-c.yaml
[edit]
[-] catname-c.yaml
[edit]
[-] size%3f-c.yaml
[edit]
[-] path-i.yaml
[edit]
[-] identical%3f-c.yaml
[edit]
[-] chown-i.yaml
[edit]
[-] split-c.yaml
[edit]
[-] expand_path-c.yaml
[edit]
[-] truncate-i.yaml
[edit]
[-] readlink-c.yaml
[edit]
[-] setgid%3f-c.yaml
[edit]
[-] file%3f-c.yaml
[edit]
[-] stat-c.yaml
[edit]
[-] safe_unlink-c.yaml
[edit]
[-] socket%3f-c.yaml
[edit]
[-] zero%3f-c.yaml
[edit]
[-] chardev%3f-c.yaml
[edit]
[-] ctime-i.yaml
[edit]
[-] rename-c.yaml
[edit]
[-] readable%3f-c.yaml
[edit]
[-] executable%3f-c.yaml
[edit]
[-] install-c.yaml
[edit]
[-] writable_real%3f-c.yaml
[edit]
[-] lstat-i.yaml
[edit]
[-] blockdev%3f-c.yaml
[edit]
[-] copy-c.yaml
[edit]
[-] writable%3f-c.yaml
[edit]
[-] exist%3f-c.yaml
[edit]
[-] unlink-c.yaml
[edit]
[-] ctime-c.yaml
[edit]
[-] basename-c.yaml
[edit]
[-] chmod-c.yaml
[edit]
[-] sticky%3f-c.yaml
[edit]
[-] utime-c.yaml
[edit]
[-] directory%3f-c.yaml
[edit]
[-] symlink-c.yaml
[edit]
[-] chown-c.yaml
[edit]
[-] size-c.yaml
[edit]
[-] extname-c.yaml
[edit]
[-] pipe%3f-c.yaml
[edit]
[-] flock-i.yaml
[edit]
[-] fnmatch-c.yaml
[edit]
[-] mtime-c.yaml
[edit]
[-] ftype-c.yaml
[edit]
[+]
Constants
[-] delete-c.yaml
[edit]
[+]
..
[-] fnmatch%3f-c.yaml
[edit]
[-] truncate-c.yaml
[edit]
[+]
Stat
[-] lchown-c.yaml
[edit]
[-] umask-c.yaml
[edit]
[-] setuid%3f-c.yaml
[edit]
[-] owned%3f-c.yaml
[edit]
[-] new-c.yaml
[edit]
[-] readable_real%3f-c.yaml
[edit]
[-] link-c.yaml
[edit]
[-] grpowned%3f-c.yaml
[edit]
[-] executable_real%3f-c.yaml
[edit]
[-] join-c.yaml
[edit]
[-] mtime-i.yaml
[edit]
[-] lstat-c.yaml
[edit]
[-] o_chmod-i.yaml
[edit]
[-] cdesc-File.yaml
[edit]
[-] syscopy-c.yaml
[edit]
[-] chmod-i.yaml
[edit]