Sha256: 61da67b95db0f3d42f24d6d33c58d110402267401dfe925b47f27ebb196d9004
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 Bytes
Contents
# Top level namespace module MyScripts # Used to auto-require all the source files located in lib/my_scripts def self.require_libs( filename, filemask ) file = ::File.expand_path(::File.join(::File.dirname(filename), filemask.gsub(/(?<!.rb)$/,'.rb'))) require file if File.exist?(file) && !File.directory?(file) Dir.glob(file).sort.each {|rb| require rb} end end # module MyScripts %W[my_scripts/script my_scripts/cli **/*].each {|rb| MyScripts.require_libs(__FILE__, rb)}
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
my_scripts-0.0.13 | lib/my_scripts.rb |
my_scripts-0.0.12 | lib/my_scripts.rb |
my_scripts-0.0.11 | lib/my_scripts.rb |
my_scripts-0.0.9 | lib/my_scripts.rb |