Files
developer-roadmap/src/data/roadmaps/ruby/content/singleton-classes@WNiD4Tllt2uDncEVPg8Pm.md
2026-01-13 15:03:30 +01:00

320 B

Singleton Classes

A singleton class in Ruby is a special kind of class that is associated with a single object. It allows you to define methods that are specific to that particular object, without affecting other objects of the same class. Think of it as a way to add unique behavior to an individual object instance.