rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 191 forks source link

Ruby defined function callbacks #362

Closed cowboyd closed 9 years ago

cowboyd commented 9 years ago

This PR adds the ability to associate a callable Ruby object with a V8::C::Function. Whenever that function is invoked, either from JavaScript, or from Ruby, that ruby code will be invoked.