matz / ruby-lang.org (Yukihiro Matsumoto) writes: [...] > |I'm looking for the "fastest" way to add a method to an existing class, in > |a Ruby program. > > In ToDo file, there's an entry: > > * def Class#method .. end ?? > > "??" means vague possibility. I think I need alternative syntax > (using # is confusing with comments). Yes, I agree, # would be confusing. Dave talked about `define_method'; is there a mandatory reason why it should stay private? If this is for back-compatibility, we could have a similar method called `add_method', a public one. -- Guillaume Cottenceau - http://mandrakesoft.com/~gc/