Break if
block = Proc.new do |x| puts x break if x == 3 puts x + 2 end block.call(5) # 5 # 7 block.call(3) # 3 # LocalJumpError: break from proc-closure