summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-14 01:23:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-14 01:23:21 +0000
commit122018e8029d5f6052d7448d8da1ec3f005d4afb (patch)
treef7257df26516a8e48d5e7bcc36298fa48935f6e2 /file.c
parent9540aa5b7b01712eadf30540d9163ed949daaa68 (diff)
* 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
Diffstat (limited to 'file.c')
-rw-r--r--file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/file.c b/file.c
index ba703d5605..089435cfca 100644
--- a/file.c
+++ b/file.c
@@ -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)
{