Ruby

Ruby programming guides, Rails tips, and metaprogramming resources for developers of all levels.

Ruby Programming

Ruby programming guides, Rails tips, and metaprogramming resources for developers of all levels.

Ruby is a dynamic, interpreted, object-oriented language designed by Yukihiro “Matz” Matsumoto with the principle of “optimizing for developer happiness.” Its elegant syntax, powerful metaprogramming capabilities, and convention-over-configuration philosophy — best exemplified by Ruby on Rails — have made it a mainstay in web development since the mid-2000s.

Articles

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.