how to declare instance variable in ruby? code example Example: Ruby instance variabnl get some_object.instance_variable_get("@#{name}")