[ruby] How to break out from a ruby block?