Sha256: 73ee4fe5ded08dc6fdca0bbefb7e877415c4ff3b19f08ddc9c8588580e01133d
Contents?: true
Size: 271 Bytes
Versions: 1
Compression:
Stored size: 271 Bytes
Contents
# encoding: utf-8 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/Context/require_all.rb |