xxuejie/mruby-js — pull request #2 by joshnuss (2013-04-29 03:55:51+00:00)
Title: Using ruby blocks when calling into javascript functions

This change makes it possible to use ruby block syntax when calling into javascript functions.

It is accomplished by checking if a block is present and wrapping it in a proc.

example usage:
```ruby
MrubyJs.global.instance_eval do
jQuery('body').clicked do
# stuff here
end
end
```

thoughts?