Class: ActionFramework::Plugables
- Inherits:
-
Object
- Object
- ActionFramework::Plugables
- Defined in:
- lib/actionframework/plugables.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Plugables
constructor
A new instance of Plugables.
- #plug(name) ⇒ Object
Constructor Details
Instance Method Details
#plug(name) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/actionframework/plugables.rb', line 13 def plug name if @index["plugs"].include? name require Gem::Specification.find_lib_dir_by_name("actionframework")+'/plugables/'+name end Object.const_get(name.classify).new if(Object.const_get(name.classify).superclass.to_s == "ActionFramework::Plugable::Initializer") end |