MainMenu

Home Java Overview Maven Tutorials

Wednesday 22 August 2018

Ruby Introduction

A brief intro of ruby



Hello Friends,
In this article , i will describe about Scripting Language Ruby :-


Ruby :-

>> was created by "Yukihiro Matsumoto" in mid of 1990.
>>Ruby is an open-source and is freely available on the web, but it is subject to a license.
>> A programmer's best friend
>> It runs on variety of platforms such as windows, Mac OS and the various version of Unix.
>> Ruby is a true object-oriented programming language.
>> Dynamic >> Open source programming language with a focus on simplicity and productivity.
>> It has an elegant syntax that is natural to read and easy to write.
>> Used for internet application.
>> Ruby can be used to write Common Gateway Interface (CGI) scripts.
>> Ruby can be embedded into Hypertext Markup Language (HTML).
>> Twitter Github are developed using ruby etc.
>> A simple programming practice(INTRO).
>> Extension of Ruby program file is ".rb".
>> comment in ruby is followed by "#".


Different Naming conventions in Ruby

Ruby defines some naming conventions for its variable, method, constant and class.
Constant: Starts with a capital letter.
Global variable: Starts with a dollar sign ($).
Instance variable: Starts with a (@) sign.
Class variable: Starts with a (@@) sign.
Method name: Allowed to start with a capital letter.



Next Topic :-

How to Download & Install Ruby & Rubymine

No comments:

Post a Comment