From: Charlie Bowman Date: 2006-05-26T22:18:51+09:00 Subject: Re: How to access a classes private method --=-dW2VEcNLSHk3+yeZJxrn Content-Type: text/plain Content-Transfer-Encoding: 7bit Yes, I'm assuming the reason this method is marked as protected in the rails framework is so that it can't be called arbitrarily from the web. I don't think I'll be causing any trouble by calling it from a plugin. On Fri, 2006-05-26 at 22:15 +0900, Tim Becker wrote: > ... > > def bars_method(a=2) > > a > > end > ... > > Here's what the relevant parts of my script look like > > > > def calling_protected_method > > result = Foo::Bar.bars_method > > end > > You do realize that the whole point of making methods protected is NOT > to be able to call them, right? > -tim > Charlie Bowman http://www.recentrambles.com --=-dW2VEcNLSHk3+yeZJxrn--