Sha256: 9d58d8ed1164865b20ded23d27b386cdad4d0e5f9fa46791dd018fee3586a8f2

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.5.0
module AnyCache::Plugins::InterfaceAccessMixin
  # @param plugin_name [Symbol, String]
  # @return [void]
  #
  # @see AnyCache::Plugins
  #
  # @api public
  # @since 0.5.0
  def plugin(plugin_name)
    AnyCache::Plugins.load(plugin_name)
  end

  # @return [Array<String>]
  #
  # @see AnyCache::Plugins
  #
  # @api public
  # @since 0.5.0
  def plugins
    AnyCache::Plugins.names
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
any_cache-0.7.0 lib/any_cache/plugins/interface_access_mixin.rb
any_cache-0.6.0 lib/any_cache/plugins/interface_access_mixin.rb
any_cache-0.5.0 lib/any_cache/plugins/interface_access_mixin.rb