Sha256: 444473f6244f9657b18bb1f5e51d6825c34cbdd84cd2f2dded2c3cc30bfdc338
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
module Kernel # Example: # aquire 'foo/bar/*' # requires all files inside foo/bar - recursive # can take multiple parameters def aquire(*files) files.each do |file| require file if %w(rb so).any?{|f| File.file?("#{file}.#{f}")} $:.each do |path| Dir[File.join(path, file, '*.rb')].each do |file| require file end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-0.0.8 | lib/merb/core_ext/merb_kernel.rb |