Sha256: 7a912fe1916bca0fe691ead6a2fc0829fd642bc5c8df6f7e6f666dfd851000d0
Contents?: true
Size: 479 Bytes
Versions: 11
Compression:
Stored size: 479 Bytes
Contents
module Textbringer module Plugin class << self attr_accessor :directory end @directory = File.expand_path("~/.textbringer/plugins") 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 end end
Version data entries
11 entries across 11 versions & 1 rubygems