From: Denis Leclair Date: 2012-08-19T01:27:08+09:00 Subject: Re: accessing protected or private methods from class methods Hi Jan, You are quite right - my initial post was confusing in that regard. The real problem is with the .configure() method but my question still stands. In this particular example, I have a .configure() method which is only intended to be run at object creation time in order to set up some of the internal state of the object. Ideally, I would prefer to to setup the interface so that it's not callable by any external code. It seems like the only way to do this is to declare the method private and then have my class method bypass the restriction using .send(). Is there no cleaner way to do this? This factory method is just one example. There are many other cases where it would make good sense to have a class method that can modify the internal state of an object by calling into protected or private methods on an object that it has a handle to. I just don't see a nice way of doing it with Ruby. Thanks again, Denis -- Posted via http://www.ruby-forum.com/.