+ 1
What's a good app to run ruby code (or multiple code languages) on Android, but OFFLINE?
So you know the Code Playground here on SoloLearn? Does anyone know of an app like that, but doesn't need internet? I don't always have access to the internet, so having something to check my ruby codes would be good to have when I don't have internet. Also, if there even is something like this as an offline app, is there an offline app that can run multiple different code languages? Code Playground doesn't work offline. At least I've never been able to get it to do so.
42 Answers
+ 1
Then use "cd /sdcard" and then "ruby <your filename>.rb".
+ 1
Oooh that make more sense lol
+ 1
Okay ^-^
+ 1
Sorry for late reply
+ 1
Yeah! I got it to work :3
+ 1
Thanx for all of your help ^-^
+ 1
Okay ^-^ thanx again
0
You can download Termux, it gives you a Linux shell with Ruby support. If you want to do this, just answer again, I'll help.
0
I think I saw that one on the app store. But yeah sure that would work for me
0
Wait, App store or Play Store
0
Termux is android only.
0
Play Store
0
Okay. Well, download it, then run "pkg install ruby", then use "cd /sdcard". Then you just use cd to navigate to your ruby file which you can then run with "ruby <filename>".
0
Okay thanx ^-^
0
If you need help, just ask. =)
0
how do you erase previous lines? I have a bunch of random code everywhere that I can't erase lol
0
"clear"
0
Oh okay. Thanks.
0
Also, how do you make the ruby script "output" what you type? say for example, I had
arr = [1, 2, 3]
arr << 4
puts arr
How do I make it output the result?
0
That would output [1, 2, 3, 4]