End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Find#prune
prune
lib/find.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/find.rb, line 83
def prune
throw :prune
end
Skips the current file or directory, restarting the loop with the next entry. If the current file is a directory, that directory will not be recursively entered. Meaningful only within the block associated with Find::find.
See the Find module documentation for an example.