Module: AnyCache::Plugins::InterfaceAccessMixin Private

Included in:
AnyCache
Defined in:
lib/any_cache/plugins/interface_access_mixin.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.5.0

Instance Method Summary collapse

Instance Method Details

#plugin(plugin_name) ⇒ void

This method returns an undefined value.

Parameters:

  • plugin_name (Symbol, String)

See Also:

Since:

  • 0.5.0



13
14
15
# File 'lib/any_cache/plugins/interface_access_mixin.rb', line 13

def plugin(plugin_name)
  AnyCache::Plugins.load(plugin_name)
end

#pluginsArray<String>

Returns:

  • (Array<String>)

See Also:

Since:

  • 0.5.0



23
24
25
# File 'lib/any_cache/plugins/interface_access_mixin.rb', line 23

def plugins
  AnyCache::Plugins.names
end