Sha256: 62fbffd0f895da5288e2d6fba91ae89f0219237f4a9e03d9d55613df3193e94e
Contents?: true
Size: 667 Bytes
Versions: 9
Compression:
Stored size: 667 Bytes
Contents
module Slideshow class Plugins include PluginHelper ### fix: remove opts, use config (wrapped!!) def initialize( logger, opts, config ) @logger = logger @opts = opts @config = config end attr_reader :logger, :opts, :config def run puts '' puts 'Plugin scripts on the load path' find_plugin_patterns.each_with_index do |pattern,i| puts " [#{i+1}] #{pattern}" end puts ' include:' plugins = find_plugins if plugins.empty? puts " -- none --" else plugins.each do |plugin| puts " #{plugin}" end end end end # class Plugins end # module Slideshow
Version data entries
9 entries across 9 versions & 1 rubygems