Zoonk icon

Ruby (programming language)

Ruby is an interpreted, high-level, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan.

Ruby is dynamically typed and uses garbage collection. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming.

Share something about Ruby (programming language)
Building hovercards on Ruby on Rails

This tutorial by Matt Swanson teaches how to build GitHub-style hovercards for your Rails application. It uses minimal JavaScript, relying on Stimulus and HTML-over-the-wire.

Numbers in Ruby

There are a few types of numbers available in Ruby. Let's see some examples: fruits = 10 lottery_prize = 42000000 price = 4.20 expression = 1 + 2i fraction = Rational(1, 3) precise_price = BigDecimal(

Data types in Ruby

When we're creating a variable in Ruby, we're also assigning a data type to it. For example, when we write something like this: car = "Tesla" We're actually telling our program to create a varia

How to perform simple calculations using Ruby

Doing simple calculations in Ruby is similar to other programming languages. First of all, open your Interactive Ruby (IRB) environment. Sum 5+2 => 7 Subtraction 5-2 => 3 Multiplication

How to declare variables in Ruby

Variables are values you can declare to use later. For example, let's say we want to save someone's name in our program. We can do it by declaring a new variable: name = "Nikola Tesla" In the exa

Ruby tutorials by javaTpoint

This Ruby tutorial provides basic and advanced concepts of Ruby. Their Ruby programming tutorial is designed for beginners and professionals both. It includes all topics of Ruby such as installation

Learn Ruby Online

Whether you are an experienced programmer or not, this course is intended for everyone who wishes to learn the Ruby programming language.

Learn Ruby from Codecademy

In this course, you will gain familiarity with Ruby and basic programming concepts — including variables, loops, control flow, and most importantly, object-oriented programming. You’ll get a chance to

Ruby for beginners

Ruby for beginners is an online course/book for those who are starting learning Ruby and don't have much experience. It was created by Ruby Monstas, a Berlin group about Ruby.

What's the scope of a local variable in Ruby?

Understanding a variable's scope is important to know when it's going to be called and what values can be changed. You can have a variable with the same in different places of your code but its valu