Sha256: 5626b0ee8591b8ec1b0634c912881c7a8f019ed034c4954eb532137a36a4ace6

Contents?: true

Size: 271 Bytes

Versions: 46

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module LicenseFinder
  class License
    class AnyMatcher
      def initialize(*matchers)
        @matchers = matchers
      end

      def matches_text?(text)
        @matchers.any? { |m| m.matches_text? text }
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
license_finder-7.1.0 lib/license_finder/license/any_matcher.rb
license_finder-7.0.1 lib/license_finder/license/any_matcher.rb
license_finder-7.0.0 lib/license_finder/license/any_matcher.rb
license_finder-6.15.0 lib/license_finder/license/any_matcher.rb
gitlab-license_finder-6.14.2.1 lib/license_finder/license/any_matcher.rb
license_finder-6.14.2 lib/license_finder/license/any_matcher.rb
license_finder-6.14.1 lib/license_finder/license/any_matcher.rb
license_finder-6.13.0 lib/license_finder/license/any_matcher.rb
license_finder-6.12.2 lib/license_finder/license/any_matcher.rb
license_finder-6.12.1 lib/license_finder/license/any_matcher.rb
license_finder-6.12.0 lib/license_finder/license/any_matcher.rb
license_finder-6.11.0 lib/license_finder/license/any_matcher.rb
license_finder-6.10.1 lib/license_finder/license/any_matcher.rb
license_finder-6.10.0 lib/license_finder/license/any_matcher.rb
license_finder-6.9.0 lib/license_finder/license/any_matcher.rb
license_finder-6.8.2 lib/license_finder/license/any_matcher.rb
license_finder-6.8.1 lib/license_finder/license/any_matcher.rb
license_finder-6.8.0 lib/license_finder/license/any_matcher.rb
license_finder-6.7.0 lib/license_finder/license/any_matcher.rb
license_finder-6.6.2 lib/license_finder/license/any_matcher.rb