Module: Staticky::Pluggable::ClassMethods

Defined in:
lib/staticky/pluggable.rb

Instance Method Summary collapse

Instance Method Details

#load_plugin(key) ⇒ Object



16
17
18
# File 'lib/staticky/pluggable.rb', line 16

def load_plugin(key)
  resolve(key)
end

#register_plugin(key, klass) ⇒ Object



20
21
22
# File 'lib/staticky/pluggable.rb', line 20

def register_plugin(key, klass)
  register(key.to_s, klass)
end