Ruby

alias and alias_method in Ruby

Learn how to use alias and alias_method in Ruby — renaming methods, wrapping behavior, and the key differences between the two.

Constants and Namespaces in Ruby

A complete guide to Ruby constants — how constant lookup works, namespacing, the :: operator, and common pitfalls with nested classes.

AOP Programming in Ruby

Understanding Aspect-Oriented Programming (AOP) in Ruby - patterns, implementation, and use cases for separating cross-cutting concerns.

Class Variables in Ruby: @@var Explained

A complete guide to Ruby class variables (@@var) — how they work, how they behave with inheritance, thread safety concerns, and why class instance variables are usually preferred.

Understanding self in Ruby

A complete guide to understanding self in Ruby — what it refers to in different contexts, how it works in classes, modules, and singleton methods.