Sha256: 8b144b8d2c1393c400fd349019bb5a4dbcd06f1d93c3882908d9b0da64f905da
Contents?: true
Size: 577 Bytes
Versions: 8
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 class SmartCore::Types::Primitive::MultChecker # @param [Array<SmartCore::Types::Primitive::Checker>] # @return [void] # # @api private # @since 0.1.0 def initialize(*checkers) @checkers = checkers end # @param value [Any] # @return [Boolean] # # @api private # @since 0.1.0 def call(value) checkers.all? { |checker| checker.call(value) } end private # @return [Array<SmartCore::Types::Primitive::Checker>] # # @api private # @since 0.1.0 attr_reader :checkers end
Version data entries
8 entries across 8 versions & 1 rubygems