From: Marc Heiler Date: 2012-01-15T15:36:01+09:00 Subject: Case menu - obtain the first conditions? Hi. Consider I have a case menu like this. def enter_menu case @i when 'list_cars','lc' list_cars when 'list_horses','lh' list_horses when 'list_plants','lp list_plants when 'help' show_help end end Now, inside the method show_help, I would like to call the FIRST entry on each case menu. I.e: list_cars list_horses and list_plants Is there a way to do this easily? The actual case menu is very very long, with multiple aliases. But the main name of every when entry is always the first entry. In other words I would need a way to programmatically access the first option of every when clause. -- Posted via http://www.ruby-forum.com/.