Usage
Ruby2Go is easy to use.
Write your Ruby code in the editor, then press the
icon to run it. The result is appended (and highlighted) at the top of the list.
History
The page you go when your code is run is called "history". Here you see the results of all the runs during current session, so when you close the app they are not saved.
Custom input
In Ruby you can use the gets
method to read from the standard input, but here you need to tell your input in order to be read, like:
with_input('line 1', 'line 2', 2016)
Feel free to supply as many parameters as you need to read, then use the normal gets
method to read it. Also, make sure you do it before your program reads the input.
Language support
The library used to run the Ruby code is called Opal, which provides support for Ruby 2 but some features are broken. If you encounter a failure, please report it to its repository so we both can benefit.
License
This project is released under the MIT license but distributed with other libraries. To see full license text, and the 3rd party ones, visit this link .
Modo de uso
Ruby2Go es fácil de usar.
Escribe tu código Ruby en el editor, luego presiona el ícono
para ejecutarlo. El resultado es agregado (y resaltado) al comienzo de la lista.
Historial
La página a la que vas cuando tu código es ejecutado se llama "historial". Aquí ves los resultados de ejecución durante la sesión actual, así que cuando cierras la aplicación no son guardados.
Entrada de texto
En Ruby puedes usar el método gets
para leer de la entrada estándar, pero aquí debes indicar tu entrada a fin de ser leída, así:
with_input('línea 1', 'línea 2', 2016)
Siéntete libre de proveer cuantos parámetros necesites leer, luego usa el método gets
normal para leerlo. Asegúrate de hacer esto antes que tu programa lea la entrada.
Soporte de lenguaje
La librería usada para ejecutar el código Ruby es llamada Opal, la cual provee soporte para Ruby 2 pero algunas características no funcionan. Si encuentras una falla, por favor repórtala a su repositorio, así nos beneficiamos ambos.
Licencia
Este proyecto es liberado bajo la licencia MIT pero es distribuido con otras librerías. Para ver la licencia completa, y las de terceros, visita este enlace .