PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
File
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Truncates <em>file</em> to at most <em>integer</em> bytes. The file must be opened for writing. Not available on all platforms. - !ruby/struct:SM::Flow::VERB body: " f = File.new("out", "w")\n f.syswrite("1234567890") #=> 10\n f.truncate(5) #=> 0\n f.close() #=> nil\n File.size("out") #=> 5\n" full_name: File#truncate is_singleton: false name: truncate params: | file.truncate(integer) => 0 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]