From: "Jan E." Date: 2012-08-28T01:34:49+09:00 Subject: Re: Finding methods inside a scope Hi, To put it bluntly: I think you've kind of got lost in all that metaprogramming magic and forgot what you actually want to do. We've asked you again and again about your goal, and you could never give a concrete answer (and your code doesn't tell either). Your code is so packed with obscure techniques (like all that module extending) and strange dependencies that I find it almost impossible to read. When I see something like this, I immediately think: This guy (or gal) doesn't think clearly. Even complex algorithms usually don't use metaprogramming that heavily. So I think there's something wrong with how you program. You've almost developed your own "pseudo-OOP" where you use modules and extending instead of classes and inheritance. I know this doesn't sound nice, but what I would do is completely dump the code and start from scratch. First you should ask yourself: What do I want to achieve? Why do I even need the code? Then you should create an appropriate and *simple* object model. Use metaprogramming only when it's actually necessary. The normal way of doing things is using classes and fixed methods. Of course we can also help you with the concept. But then we'll need a concrete goal. Something like "I want to write a database wrapper" or "I want to write a text-based adventure game". -- Posted via http://www.ruby-forum.com/.