@jreidinger sometimes suggests using something like

    break if [:cancel, :accept, :back].include?(retval)

but it's questionable whether it's more understandable or just looks geeky :)