Top Level Namespace
Defined Under Namespace
Classes: CacheService, ConfigService, McCache, SdkLogger, ZkCache
Instance Method Summary collapse
Instance Method Details
#load_gem_lib(sub_path) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/cache_service.rb', line 4 def load_gem_lib(sub_path) spec = Gem::Specification.find_by_name('cache_service') rb_files = Dir.glob("#{spec.gem_dir}/lib/#{sub_path}/*.rb") rb_files.each { |rb_file| require rb_file } rescue Exception => error # Who cares? end |