Ruby
Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
LiveCodes runs Ruby in the browser using Opal.
Opal is a Ruby to JavaScript source-to-source compiler. It comes packed with the Ruby corelib you know and love. It is both fast as a runtime and small in its footprint.
Note
Usage
LiveCodes runs Ruby in the browser, including corelib and the supported stdlib.
JavaScript interoperability and DOM access is achieved using "Native"
module. See the starter template for an example.
Language Info
Name
ruby
Extension
.rb
Editor
script
Compiler
Version
Opal v1.8.2
Code Formatting
Not supported for Ruby.
Example Usage
This example demonstrates stdlib usage, JavaScript interoperability and DOM access:
Starter Template
https://livecodes.io/?template=ruby
Links
- Ruby
- Ruby documentation
- Opal
- ruby.wasm in LiveCodes