Interpolation inside a variable?

You can probably do the following:

assigns[String.to_atom("computer#{x}")]

This works because @computer1 is shorthand for assigns.computer1 which can also be expressed as assigns[computer1]