This repository contains programs in the Ruby Programming Language.
![](https://private-user-images.githubusercontent.com/105432776/261858815-c9e629e6-6074-47a9-963a-f3d463682a55.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0Nzc0MDIsIm5iZiI6MTcyMDQ3NzEwMiwicGF0aCI6Ii8xMDU0MzI3NzYvMjYxODU4ODE1LWM5ZTYyOWU2LTYwNzQtNDdhOS05NjNhLWYzZDQ2MzY4MmE1NS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwOFQyMjE4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NGM4MjA3NjY5ZTU1NTY0NzBlODcwNmQ5MTA1NGM5NmViOGMzNzA0OTllNzk2NGYwNzAzNDU0YjQ2ZTU4N2JkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cf9YWFrtXCItiABeuUBbxM59SyG7Puu6wkXmUdztkMc)
--> Ruby is an interpreted, high-level, general-purpose programming language which supports multiple programming paradigms.
--> It was designed with an emphasis on programming productivity and simplicity.
--> In Ruby, everything is an object, including primitive data types.
--> Ruby is dynamically typed and uses garbage collection and just-in-time compilation.
--> It supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
--> To begin with Ruby, visit the official website
--> Download Ruby according to the platform being used like Linux, MacOs or Windows.
--> Follow the setup wizard.
--> Now there is irb(interactive ruby) in which we can directly write and execute ruby codes without having to create file.
--> To use this simply type irb in command prompt of system.
--> The problem with this is that once you exit the console, code will be deleted.
--> To avoid this write ruby code in any text editor or IDE and save the file with extention .rb .
--> Then just open the console and run this command-
ruby filename.rb
Filename is the name of the Ruby script and output will be displayed after running this command.
--> Visit--> Create account in :
--> Login in Komodo using this account and now komodo IDE can be used.
--> This is a multi-language IDE and we can run more than one programming langauge in this.
--> We can also execute Ruby code directly by clicking on the ⚡icon in this IDE.
--> The software package is called a “gem” which contains a packaged Ruby application or library.
--> Gems can be used to extend or modify functionality in Ruby applications.
--> Commonly they’re used to distribute reusable functionality that is for use in applications and libraries.
--> Some gems provide command line utilities to help automate tasks and speed up work.
--> To install Ruby gems this command is used-
gem install gem_name
Drop a 🌟 if you find this repository useful.
If you have any doubts or suggestions, feel free to reach me.
📫 How to reach me: