From: Charlie Bowman Date: 2006-05-26T21:29:17+09:00 Subject: How to access a classes private method --=-K0PvaeNb6k/+T5GhMI55 Content-Type: text/plain Content-Transfer-Encoding: 7bit I'm trying to call a classes protected method but I can't seem to get it to work. Here's an example of the method I'm trying to call moule Foo Class Bar protected def bars_method(a=2) a end end end Here's what the relevant parts of my script look like def calling_protected_method result = Foo::Bar.bars_method end This is resulting in a method not found error. I know I can't access a protected method this way, but I don't know how to open up the class and access this method. Thanks in advance for any help. Charlie Bowman http://www.recentrambles.com --=-K0PvaeNb6k/+T5GhMI55--