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