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

Class Method Summary collapse

Instance Attribute Details

#pluginsObject (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