I actually played around a bit and then did this:

1.upto(12) do
  |i| eval "create#{i} = agent.get(t#{i})"
end

-- 
Posted via http://www.ruby-forum.com/.