From: "Eric I." Date: 2008-11-26T09:10:24+09:00 Subject: Re: Begin else pattern question On Nov 25, 6:19 pm, Mikel Lindsaar wrote: > Any other simpler way to do this pattern? Hi Mikel, One simplification would be to remove the "begin" and the corresponding "end" since they're not needed in this situation. An extreme approach would be to put the basic logic structure into a method. But then you'd have to pass in three Procs -- one for the boolean expression, and one each for a_action and b_action. If you just want to avoid repeating the b_action, you could raise an exception in your else to force yourself into the rescue clause and do the b_action there. Hope there's something in there that you find helpful! Eric ==== Interested in hands-on, on-site Ruby or Ruby on Rails training? See http://LearnRuby.com for information about a well-reviewed courses.