Aye indeed, basically don't think of the Map, menus, and the title screen as seperate places in the game. In essence, they all derive from one object. The scene. Essentially, every modern game programmed in a practical way executes in a linear procedure:
<START>
game_init()
game_run()
game_title()
game_map()
<END>
Of course, as all functions in one thread run in a linear way, game_map() does not stop running until all subfunctions of that procedure come to an end, so having a conditional scene, such as the menu, or the game_over screen, which are activated by certain circumstances, is a continuation of the game_map function.
Maybe a bit technical, but I just kind of figured a little explanation could further help you be confused by the amazing world that is programming... Even though Ruby isn't REAL programming by any stretch...