Files
developer-roadmap/roadmaps/ruby/content/instance-variables@dbdllih50mNFBrP9huQz9.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

859 B

Instance Variables

Instance variables in Ruby are variables that hold data specific to an object. They are defined within a class but belong to individual instances (objects) of that class. You create an instance variable by prefixing a variable name with an @ symbol (e.g., @name). Each object of the class will have its own copy of these variables, allowing you to store different values for each object's attributes.

Visit the following resources to learn more: