Sha256: 12620bbe7031ec552d263f4a97e7e37b7f871a66c1bccf3e9242e0937b669411
Contents?: true
Size: 404 Bytes
Versions: 8
Compression:
Stored size: 404 Bytes
Contents
module Kernel # Require a pattern of files. This make is easy # to require an entire directory, for instance. # # require_all 'facets/time/*' # def require_all(pat) $LOAD_PATH.each do |path| fs = Dir[File.join(path,pat)] unless fs.empty? fs.each { |f| Kernel.require( f ) unless File.directory?( f ) } break; end end end end
Version data entries
8 entries across 8 versions & 2 rubygems