
How to get a random number in Ruby
A simple tutorial about how to get a truly random number with the Ruby language.
A simple tutorial about how to get a truly random number with the Ruby language.
Ruby is a language that uses multiple programming paradigms, most commonly object-oriented and functional, and with its functional nature comes the idea of functions. Ruby uses three types of closures, namely blocks, procs, and lambdas.
self is a reserved keyword in Ruby that always refers to the current object. Let's see how to use it.
Some recap about access of attributes in a Ruby object
Constant are not so often used in Ruby, however, it's always good to know how they work when the need arises. Constants are simply variables that are not meant to be changed.
A beginner friendly guide about Ruby regexes. Even if nowadays, ChatGPT tend to be not-too-bad in this field :)