Sha256: ccf3620c42e1b128187b94b692a349ac6f8a5d024f2e6aaf8e77adb4cfe23e62

Contents?: true

Size: 289 Bytes

Versions: 167

Compression:

Stored size: 289 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 ::RuntimeError, "\"#{self}\" is not a directory" unless directory?

    glob(*args)
  end
end

Version data entries

167 entries across 167 versions & 3 rubygems

Version Path
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.70.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.69.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_ruby_utils-0.117.1 lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.69.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb
eac_tools-0.68.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb