mruby/mruby — pull request #2242 by ksss (2014-05-12 23:34:07+00:00)
Title: Implement block pass

Object try call `to_proc` method when called with `&`

* define new operation `OP_BLOCK_PASS `
* check and call `to_proc` method if not `nil`
* raise TypeError if not defined `to_proc` or `to_proc` return not Proc object

see also https://github.com/mruby/mruby/issues/1471