From: Eero Saynatkari Date: 2009-02-24T00:03:55+09:00 Subject: [ruby-core:22368] Re: Surprising behavior in inheritance Excerpts from Nikolai Weibull's message of Mon Feb 23 16:53:26 +0200 2009: > Am I the only one surprised by this behavior? > > class A > def a > puts 'A#a' > end > protected :a > end > > class B < A > def a > puts 'B#a' > end > end > > B.new.a # prints B#a > > I figured that B#a would be protected too. You overrode the inherited method with a public one. Seems correct? -- Magic is insufficiently advanced technology.