Check out example codes for "What does @variable stand for in Ruby". It will help you in understanding the concepts better.

Code Example 1

@variable - is an "instance" variable. 
It can be accessed with any method inside the class.

Learn ReactJs, React Native from akashmittal.com