instance variable rails code example Example: Ruby instance variabnl get some_object.instance_variable_get("@#{name}")