lib/qonfig/plugins/access_mixin.rb in qonfig-0.18.1 vs lib/qonfig/plugins/access_mixin.rb in qonfig-0.19.0
- old
+ new
@@ -11,19 +11,30 @@
# @api public
# @since 0.4.0
def plugin(plugin_name)
Qonfig::Plugins.load(plugin_name)
end
+ alias_method :enable, :plugin
+ alias_method :load, :plugin
# @return [Array<String>]
#
# @see Qonfig::Plugins
#
# @api public
# @since 0.4.0
def plugins
Qonfig::Plugins.names
end
+
+ # @return [Array<String>]
+ #
+ # @api private
+ # @since 0.19.0
+ def loaded_plugins
+ Qonfig::Plugins.loaded_plugins
+ end
+ alias_method :enabled_plugins, :loaded_plugins
# @param plugin_name [String, Symbol]
# @param plugin_klass [Class<Qonfig::Plugins::Abstract>]
# @return [void]
#