How to capture long screenshot of apps and website on Android?
Ruby is a dynamic, object-oriented, high-level, open source and general purpose interpreted Programming Language. Ruby is mostly used for building web applications. The popular web framework Ruby on Rails is made using Ruby. It is used for Server Side Scripting. Ruby has easy and clean syntax which makes it easy to learn even for a new developer.
In this tutorial, we will focus on how you can Install and Run Ruby programs on your Android Device. You will be able to run your Ruby programs offline in your Android after following the below steps.

You need to turn on the internet to download necessary files for Termux during the first launch after app installation or clearing its data.

$ pkg install rubyTo write Ruby program, you need to install an Editor. In this tutorial, we will use Micro text editor. It is a good text editor for Termux which has many cool features. It also supports the shortcut keys that are used in PC like CTRL + V to Paste the Copied Text, CTRL + S to Save File, CTRL + Q to Exit/Quit the Editor, etc.
$ pkg install micro$ micro first.rbHere, first.rb is the name of the Ruby Program. You can use any name for your code in place of first.

Once you write the Ruby program, you need to run it to see its output.
To run your Ruby code, follow these steps.
$ ruby first.rbHere, first.rb is the name of the Ruby program you have created.
Instead of using the Termux Editors, you can also write Ruby programs on any one of your favorite Code Editor app and execute them. I am using Quoda code editor in this tutorial which is my favourite editor with many cool features.
To write your Ruby programs on code editor, follow these steps:

<filename>.rb.<filename>.You should save your file in the root of your sdcard or where you can easily get its location because you need to provide the file location to run your code.
After writing your program, you can run it to see the output. To run your Ruby code, follow these steps:
$ termux-setup-storage$ ruby /path/filename.rb
Following this tutorial, you have successfully installed Ruby in your Android, and now you can run your Ruby programs offline on your Android.
Comments
Post a Comment
Add comment.