1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* class.c (rb_define_method): do not set NOEX_CFUNC if klass is

really a module, whose methods must be safe for reciever's type.

* eval.c (rb_eval): nosuper should not be inherited unless the
  overwritten method is an undef placeholder.

* parse.y (primary): allow 'when'-less case statement; persuaded
  by Sean Chittenden.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2002-11-07 19:18:16 +00:00
parent 8e3721dfa8
commit 54fdacb125
9 changed files with 48 additions and 22 deletions

View file

@ -1130,7 +1130,7 @@ Object
=begin
=end
def inspect
sprintf("#<%s:0x%x URL:%s>", self.class.to_s, self.id, self.to_s)
sprintf("#<%s:0x%x URL:%s>", self.class.to_s, self.object_id, self.to_s)
end
=begin