Module: Textbringer::Plugin
- Defined in:
- lib/textbringer/plugin.rb
Class Attribute Summary collapse
-
.directory ⇒ Object
Returns the value of attribute directory.
Class Method Summary collapse
Class Attribute Details
.directory ⇒ Object
Returns the value of attribute directory.
4 5 6 |
# File 'lib/textbringer/plugin.rb', line 4 def directory @directory end |
Class Method Details
.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 |