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

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.


Laurent Laffont

Pharo-users mailing list
[hidden email]