aglushkov/serega

View on GitHub
lib/serega/plugins/preloads/lib/modules/config.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class Serega
  module SeregaPlugins
    module Preloads
      #
      # Config class additional/patched instance methods
      #
      # @see Serega::SeregaConfig
      #
      module ConfigInstanceMethods
        # @return [Serega::SeregaPlugins::Preloads::PreloadsConfig] `preloads` plugin config
        def preloads
          @preloads ||= PreloadsConfig.new(opts.fetch(:preloads))
        end
      end
    end
  end
end