Sha256: f8c33114167bfb4ba8da4cc1f1f28cdd9c2647c1dbc0740255394bf545bfc9ec

Contents?: true

Size: 214 Bytes

Versions: 15

Compression:

Stored size: 214 Bytes

Contents

module Polyfill
  module V2_4
    module Dir
      module ClassMethods
        def empty?(path_name)
          exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
polyfill-1.9.0 lib/polyfill/v2_4/dir.rb
polyfill-1.8.0 lib/polyfill/v2_4/dir.rb
polyfill-1.7.0 lib/polyfill/v2_4/dir.rb
polyfill-1.6.0 lib/polyfill/v2_4/dir.rb
polyfill-1.5.0 lib/polyfill/v2_4/dir.rb
polyfill-1.4.0 lib/polyfill/v2_4/dir.rb
polyfill-1.3.0 lib/polyfill/v2_4/dir.rb
polyfill-1.2.0 lib/polyfill/v2_4/dir.rb
polyfill-1.1.0 lib/polyfill/v2_4/dir.rb
polyfill-1.0.1 lib/polyfill/v2_4/dir.rb
polyfill-1.0.0 lib/polyfill/v2_4/dir.rb
polyfill-0.10.0 lib/polyfill/v2_4/dir.rb
polyfill-0.9.0 lib/polyfill/v2_4/dir.rb
polyfill-0.8.0 lib/polyfill/v2_4/dir.rb
polyfill-0.7.0 lib/polyfill/v2_4/dir.rb