Ruby - Dynamic, Open source programming language

Hey all... CodeCircle is back with a new programming language. This article is intended to give you a basic introduction to Ruby programming language.


Ruby is a Dynamic, Open source programming language which is mainly focused on simplicity and productivity. This language is completely a free language which is developed by Yukihiro Matsumoto. This article will help you to get a fresh start in Ruby.


"Hello World...!"

As the first command in Ruby, we will look how to print a statement in Ruby. Basically, the print statement can be printed using two methods,

1) puts method

The built-in method puts used to print a statement. The strings are printed using single or double quotes. Given below is the command used to print the statement "Hello World...!".
puts "Hello World...!" Try this command

2) print method

Another built-in method is Print which can be shown as below.
print "Hello World...!" Try this command
In Ruby when using puts command, it automatically adds a newline while print command doesn't.


See you soon with a new article in Ruby.



Comments

Popular posts from this blog

Working with Buttons in Android Studio

Java Part 2 :How to Install Java