From: "Hal E. Fulton" Date: 2002-04-20T00:43:48+09:00 Subject: Re: Replacing groups of methods: How would *you* do this? ----- Original Message ----- From: "David Alan Black" To: "ruby-talk ML" Sent: Friday, April 19, 2002 8:45 AM Subject: Re: Replacing groups of methods: How would *you* do this? > > Could you do conditional execution? > > if condition > class Thing > # redefine methods > end > end > I could, but I dislike if-statements that are miles long. And there's no way to encapsulate this, either, as far as I can see. Oh, I could put it into a here-doc and eval it later... but boy, is that ugly. I guess now I'm leaning toward the separate-file thing... Hal