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

Commit 40b64b8

Browse files
committed
Update README.md
1 parent 57beb23 commit 40b64b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ evaluate some simple JavaScript
3434
call JavaScript functions
3535

3636
cxt.eval "function isTruthy(arg) { return !!arg }"
37-
cxt.scope.isTruthy(0) #=> false
37+
cxt[:isTruthy].call(' ') #=> true
38+
cxt.scope.isTruthy(0) #=> false
3839

3940
embed values into the scope of your context
4041

0 commit comments

Comments
 (0)