# File lib/ramaze/plugin.rb, line 38 def add_path(path) PATH.unshift(File.expand_path(path)) PATH.uniq! end
# File lib/ramaze/plugin.rb, line 31 def add_pool(pool) POOL.unshift(pool) POOL.uniq! end
# File lib/ramaze/plugin.rb, line 61 def glob(name = '*') "{#{paths.join(',')}}/plugin/#{name}.{#{EXTS.join(',')}}" end
# File lib/ramaze/plugin.rb, line 46 def load(name, options) name = name.to_s try_require(name.snake_case) PLUGIN_LIST << [name, const_get(name.camel_case), options] rescue Exception => exception Log.error(exception) raise LoadError, "Plugin #{name} not found" end
# File lib/ramaze/plugin.rb, line 19 def setup PLUGIN_LIST.each do |name, const, options| const.setup(options) if const.respond_to?(:setup) end end
Generated with the Darkfish Rdoc Generator 2.