Sha256: f2b88198ed0064be658d896f36c12cc83ab80ecababf58d07eaef85175389806

Contents?: true

Size: 287 Bytes

Versions: 6

Compression:

Stored size: 287 Bytes

Contents

class Dir
  Backports::EXCLUDED_CHILDREN = ['.', '..'].freeze unless Backports.const_defined?('EXCLUDED_CHILDREN')
  def self.children(*args)
    entries(*args) - Backports::EXCLUDED_CHILDREN
  end

  def children
    self.class.children(path)
  end
end unless Dir.respond_to? :children

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backports-3.25.0 lib/backports/2.5.0/dir/children.rb
backports-3.24.1 lib/backports/2.5.0/dir/children.rb
backports-3.24.0 lib/backports/2.5.0/dir/children.rb
backports-3.23.0 lib/backports/2.5.0/dir/children.rb
backports-3.22.1 lib/backports/2.5.0/dir/children.rb
backports-3.22.0 lib/backports/2.5.0/dir/children.rb