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

* vm_insnhelper.c (vm_call_method): protected methods should be

checked against the real class.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-03 13:36:49 +00:00
parent 9e3e0ca3fe
commit 7b0b9df60e
3 changed files with 8 additions and 7 deletions

View file

@ -420,6 +420,8 @@ class TestMethod < Test::Unit::TestCase
end
def test
a = dup
a.extend(Module.new)
a.extend(Module.new)
class << a
protected :meth
end