1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (rb_file_size): added rdoc. a patch from Run Paint Run

Run at [ruby-core:23839].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-06-14 01:23:21 +00:00
parent 9540aa5b7b
commit 122018e802
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Jun 14 10:23:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_file_size): added rdoc. a patch from Run Paint Run
Run at [ruby-core:23839].
Sun Jun 14 07:53:26 2009 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c (nucomp_fdiv): use fdiv recursively.

10
file.c
View file

@ -1806,6 +1806,16 @@ rb_file_ctime(VALUE obj)
return stat_ctime(&st);
}
/*
* call-seq:
* file.size => integer
*
* Returns the size of <i>file</i> in bytes.
*
* File.new("testfile").size #=> 66
*
*/
static VALUE
rb_file_size(VALUE obj)
{