Sha256: fd32606ea628f105bf64f3df0068b448853fdd1acc712e52bc83186dfd5c7605

Contents?: true

Size: 288 Bytes

Versions: 3

Compression:

Stored size: 288 Bytes

Contents

class << $LOAD_PATH

  # Search load path for matching patterns.
  #
  def search(match)
    found = []
    uniq.map do |path|
      list = Dir.glob(File.join(File.expand_path(path), match))
      list = list.map{ |d| d.chomp('/') }
      found.concat(list)
    end
    found
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/load_path/search.rb
facets-3.1.0 lib/core/facets/load_path/search.rb
facets-3.0.0 lib/core/facets/load_path/search.rb