Pharocasts: Dynamic finder with #doesNotUnderstand, #perform and Regex

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Pharocasts: Dynamic finder with #doesNotUnderstand, #perform and Regex

laurent laffont
Here: http://pharocasts.blogspot.com/2010/05/dynamic-finder-with-doesnotunderstand.html

This is the sequel to SandstoneDb, simple ActiveRecord style persistence screencast.

I show how to:
- override Object#doesNotUnderstand in your class to answer to unknown messages
- use regular expressions to extract substrings
- use #perform: and #perform:with: to send a message dynamically
- develop new code in the debugger without stopping current call.

Inspired by Ruby On Rails ActiveRecord dynamic finder.


Cheers,

Laurent Laffont

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project