mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
Fix README typo
This commit is contained in:
parent
fd6c1a07c4
commit
62ff07719f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue