On Wed, Jun 09, 2004 at 04:08:38PM +0900, wang wrote:
> class Test
>   def func
>     self.test   #use self
>   end
>   
>   private
>   def test
>     p "test"
>   end
> end

If you want to do this, use protected instead of private.

I guess this means you can't have private accessors:

  class Foo
    def initialize
      self.foo = 1
    end

    private
    attr_accessor :foo
  end

but I've never seen a case where I wanted to do that.

Paul