Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Jul 8, 2015
1 parent fd05d84 commit 39eaa79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ evaluate some simple JavaScript

access values inside your JavaScript context from Ruby

cxt.eval 'var val = {num: 5, fun: function isTruthy(arg) { return !!arg }}'
cxt.eval 'var val = {num: 5, isTruthy: function (arg) { return !!arg }}'
val = cxt[:val] #=> V8::Object
cxt[:val] == cxt.scope.val #=> true
val.num #=> 5
Expand Down

0 comments on commit 39eaa79

Please sign in to comment.