Sha256: 6fc8c3fb8eea6c26e11c1d0fb2f5b6c33207764076711812d33ce55b90de9f85

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

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

plugins

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bowl-0.0.2 lib/bowl/app/helpers/plugins.rb
bowl-0.0.1 lib/bowl/app/helpers/plugins.rb