Skip to content
Some Javascriptisms in Ruby
Ruby
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.

JavascriptRuby
[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.