Sha256: 13722d041d4a1a698415e3acf323365992222f29cdf8c884a211a189f0d3a921

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Coconductor
  module ProjectFiles
    class ProjectFile < Licensee::ProjectFiles::ProjectFile
      def code_of_conduct
        if matcher
          matcher.match
        else
          CodeOfConduct.find('other')
        end
      end

      undef_method :license
      undef_method :matched_license
      undef_method :copyright?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coconductor-0.10.1 lib/coconductor/project_files/project_file.rb
coconductor-0.10.0 lib/coconductor/project_files/project_file.rb