[Ruby] What is @ (instance variable)

less than 1 minute read

What is #@ variable? Variables starting with an at sign are called “instance variables” and can be referenced from your class or subclass.

What is an instance?

An instance is something concrete, moving, moving, appearing, or disappearing. The class is used as a template. “Takoyaki machine is a class and Takoyaki is an instance”

Tags:

Updated: