Somebody answered " If you really want to define a class inside the template you could use a Struct..." and then deleted it. I don't know who but I got an email saying as much. Anyways this lead me down a path of structs, and eventually I found OpenStruct. The conversion is very simple and takes fewer lines:
<%
x = OpenStruct.new
x.textLink = 'https://www.google.com/'
x.text = 'blah'
@boxes = []
@boxes.push x
%>
<% @boxes.each do |row| %>
<a style="text-decoration:none;color:#666;" href="<%=row.textLink%>"><%=row.text%></a>
<% end %>