This is another place that'll not parse on 1.8.6, and leads me to suggest waiting until 3.0 to merge this.

In addition, `define_singleton_method` isn't available on 1.8.7 (which we do plan to support in 3.0).