From: "Jan E." Date: 2012-04-19T05:50:50+09:00 Subject: Re: Why must I know whether I extend a class or a module? Eric C. wrote in post #1057249: > Also, I see huge disadvantages to metaprogramming because > it hides you logic in a puzzle. > > Just because you can do something tricky, doesn't mean its advisable. Sure. But the code above I wouldn't really call "metaprogramming". It's simply an alternative to the standard way of adding new methods. If you don't like it, you'll actually have to reject the whole idea of dynamic classes. But I do agree that metaprogramming should be used with caution (or maybe even avoided), since it can make the code hard to understand to a point where the behaviour is almost unpredictable. -- Posted via http://www.ruby-forum.com/.