Category Archives: Ruby

Monkey Patching in Ruby

In Ruby, a Monkey Patch (MP) is referred to as a dynamic modification to a class and by a dynamic modification to a class means… Read More »

The autoload Method in Ruby

Ruby has an in-built module autoload, which comes into action whenever a specific module or a class is accessed or called upon from the parent… Read More »

Or Keyword in Ruby

In Ruby, “or” keyword returns the logical disjunction of its two operands. The condition becomes true if both the operands are true. It returns “true”… Read More »

Load Vs Require in Ruby

Load reads and parses files every time the file (in which load is called) is executed. In most cases, we’ll use require, but there are… Read More »

Closures in Ruby

In Ruby, closure is a function or a block of code with variables that are bound to the environment that the closure is called. Or… Read More »

Namespaces in Ruby

A namespace is a container for multiple items which includes classes, constants, other modules, and more. It is ensured in a namespace that all the… Read More »