Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use define method in method_missing #1

Open
drhenner opened this issue Sep 7, 2011 · 1 comment
Open

use define method in method_missing #1

drhenner opened this issue Sep 7, 2011 · 1 comment

Comments

@drhenner
Copy link

drhenner commented Sep 7, 2011

You probably should not be going to method missing for methods you have already called before... instead use define_method in the method missing implementation. It will speed things up.

Take a look at this post. http://www.alfajango.com/blog/method_missing-a-rubyists-beautiful-mistress/

I might contribute if I have time. I just created a similar project at work.

Thanks for sharing your code.
Dave

@scottwater
Copy link
Owner

Great suggestion and makes perfect sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants