summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-18 17:00:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-18 17:00:43 +0000
commit575aa78eae7a7011cd80e1e0e539400367c214b6 (patch)
tree265f93c10f4ffca7ac08b93732f8d5a3e7cdb007 /eval.c
parente55400b822f4ba87ad3f356840ef13ca8ca43668 (diff)
downloadruby-575aa78eae7a7011cd80e1e0e539400367c214b6.tar.gz
ruby-575aa78eae7a7011cd80e1e0e539400367c214b6.tar.xz
ruby-575aa78eae7a7011cd80e1e0e539400367c214b6.zip
* eval.c (rb_attr): extra calls of method_added. [ruby-talk:76361]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index f520bfa7f..94e525716 100644
--- a/eval.c
+++ b/eval.c
@@ -560,13 +560,11 @@ rb_attr(klass, id, read, write, ex)
attriv = rb_intern(buf);
if (read) {
rb_add_method(klass, id, NEW_IVAR(attriv), noex);
- rb_funcall(klass, added, 1, ID2SYM(id));
}
if (write) {
sprintf(buf, "%s=", name);
id = rb_intern(buf);
rb_add_method(klass, id, NEW_ATTRSET(attriv), noex);
- rb_funcall(klass, added, 1, ID2SYM(id));
}
}