README.md in therubyracer-0.10.0beta1 vs README.md in therubyracer-0.10.0

- old
+ new

@@ -46,22 +46,22 @@ class MyMath def plus(lhs, rhs) lhs + rhs end end - + cxt['math'] = MyMath.new cxt.eval("math.plus(20,22)") #=> 42 make a ruby object *be* your global javascript scope. math = MyMath.new V8::Context.new(:with => math) do |cxt| 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)") ## Different ways of loading javascript source @@ -94,18 +94,18 @@ def to_s super end end - + class B < A def b "b" end end - - + + V8::Context.new do |cxt| cxt['a'] = A.new cxt['b'] = B.new cxt.eval("a.a") # => 'a' cxt.eval("b.b") # => 'b' @@ -135,9 +135,12 @@ git clone git://github.com/cowboyd/therubyracer.git cd therubyracer git submodule update --init bundle install rake compile + +## Sponsored by +<a href="http://thefrontside.net">![The Frontside](http://github.com/cowboyd/therubyracer/raw/master/thefrontside.png)</a> ## LICENSE: (The MIT License) \ No newline at end of file