1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

Fix README typo

This commit is contained in:
Julien Sanchez 2010-08-26 17:01:58 +08:00 committed by Charles Lowell
parent fd6c1a07c4
commit 62ff07719f

View file

@ -38,7 +38,7 @@ Embed the V8 Javascript interpreter into Ruby.
# embed ruby code into your scope and call it from javascript
cxt["say"] = lambda {|word, times| word * times}
context.eval("say("Hello", 3)") #=> HelloHelloHello
cxt.eval("say('Hello', 3)") #=> HelloHelloHello
# embed a ruby object into your scope and access its properties/methods from javascript