Top Level Namespace

Defined Under Namespace

Modules: Bowl Classes: Bootstrap, Error, Plugin

Instance Method Summary collapse

Instance Method Details

#pluginsObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/bowl/app/helpers/plugins.rb', line 2

def plugins
  @@plugins ||=
    (
     plugins = {}
     Plugin.list.each do |name, path|
       puts "load plugin \"#{name}\" - #{path}"
       begin
         plugins[name] = Plugin.new name
       rescue => e
         STDERR.puts e
         plugins[name] = e
         next
       end
     end
     plugins
     )
end