Sha256: b04331c46cb2cd198822a1754e33e2eee8b2e1c3af0d03b746f3aad9d36e868a
Contents?: true
Size: 650 Bytes
Versions: 20
Compression:
Stored size: 650 Bytes
Contents
# frozen_string_literal: true class Serega module SeregaPlugins module Preloads # # Validator for attribute :preload option # class CheckOptPreload class << self # # Checks :preload option # # @param opts [Hash] Attribute options # # @raise [SeregaError] validation error # # @return [void] def call(opts) return unless opts.key?(:preload) raise SeregaError, "Option :preload can not be used together with option :const" if opts.key?(:const) end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems