Sha256: 25317bf57f329a6c53eb75cc518affe8b816fd28dba0ce1f55627392123dada1
Contents?: true
Size: 369 Bytes
Versions: 8
Compression:
Stored size: 369 Bytes
Contents
# frozen_string_literal: true module Leftovers module Matchers class All include ComparableInstance attr_reader :matchers def initialize(matchers) @matchers = matchers freeze end def ===(value) @matchers.all? do |matcher| matcher === value end end freeze end end end
Version data entries
8 entries across 8 versions & 1 rubygems