On 2-jan-2006, at 10:48, Jean-Christophe Michel wrote:
def my_method return true if @@my_method_called @@my_method_called = true # do something endSure it would work. Is it a good practice to use a global for such a problem ?
@@class_var. -- Regards, Charles. _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core