What is Ruby?
In this page:
What is Ruby?
Ruby is a dynamic, object-oriented programming language created by Yukihiro "Matz" Matsumoto in Japan, first released in 1995, and designed explicitly around programmer happiness and readable, elegant syntax.
Ruby is best known as the language behind Ruby on Rails, a web framework that powers products like GitHub, Shopify, and Airbnb, but it's also widely used for general scripting and automation. Its clean, expressive syntax makes it a popular first language for learning object-oriented programming.
Example: What is Ruby?
puts "Hello, World!"
Login to try C/C++/Java/PHP code in the editor
- Thinking Ruby is only for Rails, when Ruby is a general-purpose language and Rails is one framework built on it.
- Expecting Ruby to need type declarations or semicolons, when it is dynamically typed and lines end without
;. - Writing code like Java with
System.out.println, when Ruby prints withputs.
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: