Sha256: 09c5685cd733de30a4906e81518a11afe83c6818e1a69bca8cb3cff9d7d428ca
Contents?: true
Size: 613 Bytes
Versions: 7
Compression:
Stored size: 613 Bytes
Contents
Dir[File.dirname(__FILE__) + '/lhc/concerns/lhc/*.rb'].sort.each { |file| require file } module LHC include BasicMethods include Formats def self.config LHC::Config.instance end def self.configure LHC::Config.instance.reset yield config end end Gem.find_files('lhc/**/*.rb') .sort .reject do |path| (!defined?(Rails) && File.basename(path).include?('railtie.rb')) || # don't require railtie if Rails is not around path.match(%r{\/test\/.*_helper}) # don't require test helper (as we ask people to explicitly require if needed) end.each do |path| require path end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
lhc-5.1.1 | lib/lhc.rb |
lhc-5.1.0 | lib/lhc.rb |
lhc-5.0.3 | lib/lhc.rb |
lhc-5.0.2 | lib/lhc.rb |
lhc-5.0.1 | lib/lhc.rb |
lhc-5.0.0 | lib/lhc.rb |
lhc-4.0.2 | lib/lhc.rb |