Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Some Javascriptisms in Ruby
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
js.rb
test.rb

README.md

This simple library emulates the following core JS calls in Ruby, But has some slight syntactic differences.

Javascript Ruby
[handle] setTimeout ( block, interval ) [handle] JS::setTimeout ( interval, block )
[handle] setInterval ( block, interval ) [handle] JS::setInterval ( interval, block )
clearTimeout ( handle ) JS::clearTimeout ( handle )
clearInterval ( handle ) JS::clearInterval ( handle )
[object] {} [object] JS::object ( hash )

See test.rb for crude usage examples.

License

MIT

Something went wrong with that request. Please try again.