Skip to content

This repository contains programs in the Ruby Programming Language.

Notifications You must be signed in to change notification settings

madhurimarawat/Ruby-Programming

Repository files navigation

Ruby-Programming

This repository contains programs in the Ruby Programming Language.

About Ruby Programming

--> 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.


Modes of Execution Used Komodo IDE 

Ruby Language

--> 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.

Komodo IDE

--> Visit Komodo IDE and download according the platform to be used.

--> 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.

Features of Ruby


Gems in Ruby 📚

--> 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 

Thanks for Visiting 😄

Drop a 🌟 if you find this repository useful.

If you have any doubts or suggestions, feel free to reach me.

📫 How to reach me:   Linkedin Badge     Mail Illustration📫