diff --git a/README.md b/README.md index 7a31d2c..bf37423 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ embed a ruby object into your scope and access its properties/methods from javas lhs + rhs end end - + cxt['math'] = MyMath.new cxt.eval("math.plus(20,22)") #=> 42 @@ -59,7 +59,7 @@ make a ruby object *be* your global javascript scope. cxt.eval("plus(20,22)") #=> 42 end -you can do the same thing with Object#eval_js +you can do the same thing with Object#eval_js math.eval_js("plus(20,22)") @@ -96,14 +96,14 @@ exposed by default. E.g. super end end - + class B < A def b "b" end end - - + + V8::Context.new do |cxt| cxt['a'] = A.new cxt['b'] = B.new @@ -138,6 +138,9 @@ To use the ruby racer in rails, or any application using Bundler to manage gems, bundle install rake compile +## Sponsored by +![The Frontside](http://github.com/cowboyd/therubyracer/raw/master/thefrontside.png) + ## LICENSE: (The MIT License) diff --git a/thefrontside.png b/thefrontside.png new file mode 100644 index 0000000..f2f72b9 Binary files /dev/null and b/thefrontside.png differ