Class: Pluginator::Autodetect
- Includes:
- NameConverter
- Defined in:
- lib/pluginator/autodetect.rb
Overview
Add autodetection capabilities to Group
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Group
Instance Method Summary collapse
-
#initialize(group, options = {}) ⇒ Autodetect
constructor
Automatically load plugins for given group (and type).
-
#type ⇒ Object
Return the forced type.
Methods inherited from Group
Constructor Details
#initialize(group, options = {}) ⇒ Autodetect
Automatically load plugins for given group (and type)
34 35 36 37 |
# File 'lib/pluginator/autodetect.rb', line 34 def initialize(group, = {}) super(group) setup_autodetect([:type]) end |
Instance Method Details
#type ⇒ Object
Return the forced type
40 41 42 |
# File 'lib/pluginator/autodetect.rb', line 40 def type @plugins[@force_type] unless @force_type.nil? end |