Gem-small
Log in or Sign up

Mail_new E-mail to friends
Print Print

acts_as_traceable - Can you finish it?

Posted December 11, 2008 in News | 146 views | 5 comments

This is the metaprogramming challenge that I mentioned last 
night at the ATLRUG meeting.

See source code with sample output here:
http://gist.github.com/32234

I hope to find time before Christmas to study http://notahat.com/
not_a_mock to see if the solution is there.

When this gets figured out I'll be happy to give a short
presentation on this and the applicability of metaprogramming.

Cheers!

- Lex Sheehan


Post Comments

Add Your Comment!

Log in to leave a comment or Create an account
Lex-at-us-open-right_thumb

l e x writes:

January 07, 2009

Thank you all for your insights.

David - that was just what I had hoped for :-)

ATLRUG rocks!

I'll be happy to present these findings... and the metaprogramming bit on the 14th... if that's okay with ya'll.


David_s_face_thumb

daviddollar writes:

December 11, 2008

http://github.com/ddollar/acts_as_traceable


Jordi_thumb

jordi writes:

December 11, 2008

Cool, I added a snipped based on the code Brandon linked to, so now it has support for multiple classes being traced.


Headshot_square_thumb

brandon writes:

December 11, 2008

A pattern to allow multiple trace functions:

http://codeidol.com/other/rubyckbk/Testing,-Debugging,-Optimizing,-and-Documenting/Running-Multiple-Analysis-Tools-at-Once/


Jordi_thumb

jordi writes:

December 11, 2008

I know it's not quite what you are asking for, but this does (I believe) the same thing:

http://gist.github.com/34810


» All comments
» Comments RSS