print "Enter your name: "
name = gets

http://www.rubycentral.com/book/tut_io.html

to get the first letter of 'name' you would access it by name[0,1]