mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Fix the rdoc for File::Stat#size? [ci skip]
This commit is contained in:
parent
edf01d4e82
commit
4814528296
1 changed files with 5 additions and 3 deletions
8
file.c
8
file.c
|
@ -6063,11 +6063,13 @@ rb_stat_z(VALUE obj)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* state.size -> integer
|
||||
* stat.size? -> Integer or nil
|
||||
*
|
||||
* Returns the size of <i>stat</i> in bytes.
|
||||
* Returns +nil+ if <i>stat</i> is a zero-length file, the size of
|
||||
* the file otherwise.
|
||||
*
|
||||
* File.stat("testfile").size #=> 66
|
||||
* File.stat("testfile").size? #=> 66
|
||||
* File.stat("/dev/null").size? #=> nil
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue