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.
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...!".
Another built-in method is Print which can be shown as below.
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
Post a Comment