The Variables starts with the @ character are called instance variables. They belong to individuals’ objects – or instances of the class. It is not necessary to pre-declare these variables. See an example:
def set_name (aName)
@cityname = aName
Here variable ‘cityname, begin with the @ character is called instance variable.