diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | file.c | 10 |
2 files changed, 15 insertions, 0 deletions
@@ -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. @@ -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) { |