Top Level Namespace

Defined Under Namespace

Modules: DateTimeMaps Classes: LocaleHelper

Instance Method Summary collapse

Instance Method Details

#load_gem_lib(sub_path) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/ruby_l10n.rb', line 3

def load_gem_lib(sub_path)
  spec = Gem::Specification.find_by_name('ruby_l10n')
  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