Class: BigWig::Plugins

Inherits:
Object
  • Object
show all
Defined in:
lib/bigwig/plugins.rb

Overview

loads all the plugins from the BigWig::Plugins.root folder

Constant Summary collapse

PLUGINS =
{}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.rootObject

Returns the value of attribute root.



5
6
7
# File 'lib/bigwig/plugins.rb', line 5

def root
  @root
end

Class Method Details

.load_allObject

load all plugins in the BigWig::Plugins.root folder



8
9
10
# File 'lib/bigwig/plugins.rb', line 8

def load_all
  register_plugins
end

.plugin_for(key) ⇒ Object

find the plugin with the given name



13
14
15
# File 'lib/bigwig/plugins.rb', line 13

def plugin_for(key)
  PLUGINS[key] || BigWig::Plugin
end