Sha256: d65bb6535d7200246d6ee5a723c42e961b7478a63166ff27a9eccfe5d45d00b7

Contents?: true

Size: 470 Bytes

Versions: 7

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

class Serega
  module SeregaValidations
    module Attribute
      class CheckOptMany
        #
        # Checks attribute :many option
        #
        # @param opts [Hash] Attribute options
        #
        # @raise [SeregaError] SeregaError that option has invalid value
        #
        # @return [void]
        #
        def self.call(opts)
          Utils::CheckOptIsBool.call(opts, :many)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
serega-0.6.1 lib/serega/validations/attribute/check_opt_many.rb
serega-0.6.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.5.2 lib/serega/validations/attribute/check_opt_many.rb
serega-0.5.1 lib/serega/validations/attribute/check_opt_many.rb
serega-0.5.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.4.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.3.0 lib/serega/validations/attribute/check_opt_many.rb