# File lib/backports/1.8.7/stop_iteration.rb, line 7 def loop_with_stop_iteration(&block) loop_without_stop_iteration(&block) rescue StopIteration # ignore silently end