The Ruby Programming Language (original) (raw)
Sample Programs in Every Language
A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Published on 21 March 2018 (Updated: 26 March 2025)
Welcome to the Ruby page! Here, you'll find a description of the language as well as a list of sample programs in that language.
This article was written by:
- Jeremy Grifski
- Ron Zuckerman
Description
According to Wikipedia, Ruby is a general-purpose language that first appeared back in 1995 in Japan. Apparently, Ruby is a truly object-oriented language in the sense that almost everything is an object. In fact, even numbers are objects in Ruby which means they can be subjected to the dot operator. How cool is that?
Today, the other major industry languages like Python and Java are more popular general-purpose languages, so Ruby often finds its place as a web development language. This is probably due to the Ruby on Rails framework which helps developers build web applications quickly and easily.
Features
- Everything is an object
- Closures
- Mixins
Articles
There are 19 articles:
- Baklava in Ruby
- Binary Search in Ruby
- Bubble Sort in Ruby
- Capitalize in Ruby
- Duplicate Character Counter in Ruby
- Even Odd in Ruby
- Factorial in Ruby
- Fibonacci in Ruby
- File Input Output in Ruby
- Fizz Buzz in Ruby
- Hello World in Ruby
- Josephus Problem in Ruby
- Longest Word in Ruby
- Palindromic Number in Ruby
- Prime Number in Ruby
- Quine in Ruby
- Remove All Whitespace in Ruby
- Reverse String in Ruby
- Roman Numeral in Ruby