Check out example codes for "Ruby instance variabnl get". It will help you in understanding the concepts better.

Code Example 1

some_object.instance_variable_get("@#{name}")

Learn ReactJs, React Native from akashmittal.com