Sha256: 622050233251833262bda47a7f2aaa26931c43ddda9365f0510e258ea668b116
Contents?: true
Size: 397 Bytes
Versions: 13
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true # This is a backport of ruby 2.5's each_child method class FastIgnore module Backports module DirEachChild refine ::Dir.singleton_class do def each_child(path, &block) Dir.entries(path).each do |entry| next if entry == '.' || entry == '..' block.call entry end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems