Module: Sabrina::Plugin::Load
- Defined in:
- lib/sabrina/plugin/load.rb
Overview
Allows to load plugins. Add load_plugins
at the end of your class’s initialize
call.
Instance Attribute Summary collapse
-
#plugins ⇒ Object
readonly
Returns the value of attribute plugins.
Class Method Summary collapse
-
.include_in(obj) ⇒ Object
Exposes
#append_features
.
Instance Attribute Details
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
13 14 15 |
# File 'lib/sabrina/plugin/load.rb', line 13 def plugins @plugins end |
Class Method Details
.include_in(obj) ⇒ Object
Exposes #append_features
.
8 9 10 |
# File 'lib/sabrina/plugin/load.rb', line 8 def include_in(obj) append_features(obj) unless obj.include?(self) end |