aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
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)
{