summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/array.c b/array.c
index d8a02a0..7172baa 100644
--- a/array.c
+++ b/array.c
@@ -51,6 +51,13 @@ rb_ary_modify(ary)
rb_raise(rb_eSecurityError, "Insecure: can't modify array");
}
+VALUE
+rb_ary_freeze(ary)
+ VALUE ary;
+{
+ return rb_obj_freeze(ary);
+}
+
static VALUE
rb_ary_frozen_p(ary)
VALUE ary;