Sha256: e09f1e1182728a9dae985e33f7f91ca58d7be7bf3f78b44aa34d4c7dfbb52259

Contents?: true

Size: 236 Bytes

Versions: 8

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

module Codeowners
  class Checker
    # Owner shared methods.
    module Owner
      def self.valid?(*owners)
        owners.any? && owners.all? { |owner| owner.include?('@') }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
codeowner_validator-0.4.0 lib/codeowners/checker/owner.rb
codeowners-checker-1.1.2 lib/codeowners/checker/owner.rb
codeowners-checker-1.1.1 lib/codeowners/checker/owner.rb
codeowners-checker-1.0.5 lib/codeowners/checker/owner.rb
codeowners-checker-1.0.4 lib/codeowners/checker/owner.rb
codeowners-checker-1.0.3 lib/codeowners/checker/owner.rb
codeowners-checker-1.0.2 lib/codeowners/checker/owner.rb
codeowners-checker-1.0.1 lib/codeowners/checker/owner.rb