This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
snarl /
| name | age | message | |
|---|---|---|---|
| |
.document | Sun Nov 08 17:15:54 -0800 2009 | |
| |
.gitignore | Sun Nov 08 17:15:54 -0800 2009 | |
| |
LICENSE | Sun Nov 08 17:15:54 -0800 2009 | |
| |
README.rdoc | Sun Nov 08 17:15:54 -0800 2009 | |
| |
Rakefile | Sun Nov 08 17:15:54 -0800 2009 | |
| |
VERSION | Sun Nov 08 17:16:27 -0800 2009 | |
| |
lib/ | Sun Nov 08 17:15:54 -0800 2009 | |
| |
spec/ | Sun Nov 08 11:51:58 -0800 2009 |
README.rdoc
Snarl
Snarl is JavaScript in disguise, bridging Ruby and Rhino. JRuby required.
Synopsis
context = Snarl::JavascriptContext.new
context.eval("1+1") # => 2
context.eval("var increment = function(i){ return i+1 };")
context.eval("increment(3)") # => 4
context.load("/path/to/js/lib.js") # allows use of lib.js
context.put("foo", "bar")
context.get("foo") # => "bar"
Testing
Run "rake"
Copyright
Copyright © 2009 Jon Crosby. See LICENSE for details.







