Fix ruby 1.8.7 issues

* No public_method or public_send in 1.8.7
* No case/when with procs in 1.8.7