Sha256: a624d8615c0d415a16c16d342cd19c9a42b59ad55d751d8df4779df742c7fcbc
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
$LOAD_PATH.instance_eval do def find_file(file) find_all_files(file){|f| return f} nil end def find_all_files(file) inject([]){|ary, path| target = File.join(path, file) if File.readable?(target) ary << target yield target if block_given? end ary } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
load_path_find-0.0.1 | lib/load_path_find.rb |