summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-01 09:42:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-01 09:42:38 +0000
commit817a62de81d75c73cceb453301ef27b094f17c14 (patch)
tree65e06d76c544a8d80296d686bf88ec3af41fdc50 /object.c
parent5cffff58445b5aec50bd4abe2198bf84b8dd68c4 (diff)
downloadruby-817a62de81d75c73cceb453301ef27b094f17c14.tar.gz
ruby-817a62de81d75c73cceb453301ef27b094f17c14.tar.xz
ruby-817a62de81d75c73cceb453301ef27b094f17c14.zip
2000-05-01
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/object.c b/object.c
index b2806da17..797d8ffba 100644
--- a/object.c
+++ b/object.c
@@ -1,4 +1,4 @@
-/************************************************
+/**********************************************************************
object.c -
@@ -7,8 +7,10 @@
created at: Thu Jul 15 12:01:24 JST 1993
Copyright (C) 1993-2000 Yukihiro Matsumoto
+ Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
+ Copyright (C) 2000 Information-technology Promotion Agancy, Japan
-************************************************/
+**********************************************************************/
#include "ruby.h"
#include "st.h"
@@ -829,6 +831,7 @@ fail_to_type(arg)
arg->val == Qfalse ? "false" :
rb_class2name(CLASS_OF(arg->val)),
arg->s);
+ return Qnil; /* not reached */
}
VALUE
@@ -1062,6 +1065,7 @@ Init_Object()
rb_define_method(rb_mKernel, "id", rb_obj_id, 0);
rb_define_method(rb_mKernel, "__id__", rb_obj_id, 0);
rb_define_method(rb_mKernel, "type", rb_obj_type, 0);
+ rb_define_method(rb_mKernel, "class", rb_obj_type, 0);
rb_define_method(rb_mKernel, "clone", rb_obj_clone, 0);
rb_define_method(rb_mKernel, "dup", rb_obj_dup, 0);