str = "Tomato"
num = 2

puts str[num-1, 1]

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