Sha256: 43bacc7806d91affc9bfb5f8ae394684613f8b4edbc8d3af1067e26234aa25d7

Contents?: true

Size: 273 Bytes

Versions: 5

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

require 'pathname'

class Pathname
  # A .glob that raises a ::RuntimeError if +self+ is not a directory.
  # @return [Pathname]
  def reqdir_glob(*args)
    raise "\"#{self}\" is not a directory" unless directory?

    glob(*args)
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
eac_ruby_utils-0.124.0 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.97.2 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.123.0 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.121.0 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.120.0 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb