Sha256: 2dcd0c4bae079cc2f1e137dc5570b0728e52d5115f0e818f73f2822e770b0a95
Contents?: true
Size: 253 Bytes
Versions: 3
Compression:
Stored size: 253 Bytes
Contents
module Kernel # Requires all the files that match the glob in the # current load-path def require_all(glob) $:.each do |path| Dir.glob(path + "/" + glob) do |file| name = file.to_s.sub(path + "/", "") require name end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
jldrill-0.5.1.7 | lib/Context/require_all.rb |
context-0.0.22 | lib/Context/require_all.rb |
context-0.0.16 | lib/Context/require_all.rb |