RUBY BASICS

How to Write a Program in Ruby and Run:

Open Notepad and write a simple program and save with filename.rb extension.
Now open Command Prompt and execute the above written program as

Variables:

Global Variable:


Instance Variable:


Class Variable:


Local Variable:



String Methods:


Loops:

While Loop:



Until Loop:



For Loop:


Break Statement:


Next Statement:


Read User Input From Keyboard:


Read Data From File:



Write Data to File:



Finding First Non Repeated Character in a given string:


Finding Highest Repeated Character From a given string:


Database Connectivity:

Open control panel and make some settings as




















Previous
« Prev Post