On Fri, Apr 17, 2015 at 9:58 AM, Cristiano de Araujo Bezerra <[email protected]> wrote: > case key > when 'a' > print "#{vowels['a']}" > when 'i' > print "#{vowels['i']}" > when 'u' > print "#{vowels['u']}" > when 'e' > print "#{vowels['e']}" > when 'o' > print "#{vowels['o']}" > when 'q' > puts 'bye bye' > when '' > puts 'No letter was typed!' > else > puts "This letter is not part of hiragana alphabet!" > end
you may replace the above case statement w vowel = vowels[key] || "this letter is not part of hiragana alphabet\n" print vowel kind regards --botp -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAwHHQg2BvS4i8LthOD7Kf0nO79%2BL3rVP%2B8pAGcKjZ7AajwKsA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

