Method: Textbringer::Plugin.load_plugins
- Defined in:
- lib/textbringer/plugin.rb
.load_plugins ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/textbringer/plugin.rb', line 9 def self.load_plugins files = Gem.find_latest_files("textbringer_plugin.rb", false) + Dir.glob(File.join(directory, "*/**/textbringer_plugin.rb")) files.each do |file| begin load(file) rescue Exception => e show_exception(e) end end end |