ruby instance variables code example
Example 1: Ruby instance variabnl get
some_object.instance_variable_get("@#{name}")
Example 2: ruby get instance variables without accessor
foo.instance_variable_set(:@foo, 12)
puts foo.instance_variable_get(:@foo)
Example 3: variables in ruby
var_name = "value"