Ruby Code Viewer

Example Ruby Code:

    
def EnterData()
    puts "Please enter student ##{pool.length + 1}'s name"
    name = gets.chomp
    puts "Please enter student ##{pool.length + 1}'s score"
    score = gets.chomp
    pool[name.to_s] = score.to_i
end