Constants and Namespaces in Ruby
A complete guide to Ruby constants — how constant lookup works, namespacing, the :: operator, and common pitfalls with nested classes.
A complete guide to Ruby constants — how constant lookup works, namespacing, the :: operator, and common pitfalls with nested classes.
A complete guide to Ruby's Hash and Struct — their differences, use cases, and when Struct is the better choice for structured data.
Understanding Aspect-Oriented Programming (AOP) in Ruby - patterns, implementation, and use cases for separating cross-cutting concerns.
Learn how Ruby's prepend works, how it differs from include, and when to use each for module composition and method wrapping.
A curated collection of essential Ruby articles covering modules, metaprogramming, equality operators, and the Ruby object model.
A complete guide to Ruby's singleton methods and singleton class — what they are, how they work, and how they underpin class methods and Ruby's object model.
A complete guide to Ruby's dynamic dispatch — using send, public_send, and method objects to call methods dynamically, bypass visibility, and build flexible APIs.
A complete guide to Ruby's attribute accessors — attr_accessor, attr_reader, and attr_writer — with examples, custom implementations, and best practices.
Practical patterns for using Ruby class variables as counters — with thread safety, inheritance considerations, and better alternatives.
A complete guide to Ruby's method_missing — how it works, practical use cases, and how to implement it safely with respond_to_missing?.