Sha256: 9860f3c191dd4f1e92b663f7b2451fec125d371593af6854ec7cd16484cdc093

Contents?: true

Size: 529 Bytes

Versions: 12

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

class Serega
  module SeregaValidations
    module Attribute
      #
      # Attribute `:many` option validator
      #
      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

12 entries across 12 versions & 1 rubygems

Version Path
serega-0.14.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.12.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.11.2 lib/serega/validations/attribute/check_opt_many.rb
serega-0.11.1 lib/serega/validations/attribute/check_opt_many.rb
serega-0.11.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.10.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.9.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.8.3 lib/serega/validations/attribute/check_opt_many.rb
serega-0.8.2 lib/serega/validations/attribute/check_opt_many.rb
serega-0.8.1 lib/serega/validations/attribute/check_opt_many.rb
serega-0.8.0 lib/serega/validations/attribute/check_opt_many.rb
serega-0.7.0 lib/serega/validations/attribute/check_opt_many.rb