Alle gioved 13 dicembre 2007, Mario Ruiz ha scritto:
> Maybe a solution can be if I write the classes inside a module and I can
> declare a method as private for this module, is it possible?

No. There are private module methods, but they're another thing enterely. A 
private module method (or private class method) is a method which can only be 
called with the module as receiver. For example:

module M
 
  def self.a_method
    puts "a_method"
  end
  private_class_method :a_method

end

M.a_method
=> NoMethodError: private method `a_method' called for M:Module.

Why don't you like to use send as I suggested?

Stefano