Stefan Tilkov's Random Stuff

String#to_proc

Reg Braithwaite has published String#to_proc, which translates Ruby-like code expressions (in string from) to Procs. Very neat — a little DSL that can be used wherever you need to quickly create a chunk of code to pass around.