Sha256: fbe943f5c9d7605349ee18372137181b26aa54aa62aecc390c9025e917fd326a

Contents?: true

Size: 141 Bytes

Versions: 3

Compression:

Stored size: 141 Bytes

Contents

class Pathname

  # Is a directory path empty?
  #
  # Returns [Boolean]
  def empty?
    Dir.glob(::File.join(to_s, '*')).empty?
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/standard/facets/pathname/empty.rb
facets-3.1.0 lib/standard/facets/pathname/empty.rb
facets-3.0.0 lib/standard/facets/pathname/empty.rb