Sha256: a18f6f3c58faa0aaf13a3820e32b6410605801e0f4d89f56a452304cf86b0008

Contents?: true

Size: 356 Bytes

Versions: 21

Compression:

Stored size: 356 Bytes

Contents

module LicenseFinder
  class License
    class Template
      TEMPLATE_PATH = ROOT_PATH.join("license", "templates")

      def self.named(name)
        new TEMPLATE_PATH.join("#{name}.txt").read
      end

      attr_reader :content

      def initialize(raw_content)
        @content = Text.normalize_punctuation(raw_content)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
license_finder-3.0.4 lib/license_finder/license/template.rb
license_finder-3.0.2 lib/license_finder/license/template.rb
license_finder-3.0.1 lib/license_finder/license/template.rb
license_finder-3.0.0 lib/license_finder/license/template.rb
license_finder-2.1.2 lib/license_finder/license/template.rb
license_finder-2.1.1 lib/license_finder/license/template.rb
license_finder-2.1.0 lib/license_finder/license/template.rb
license_finder-2.1.0.rc9 lib/license_finder/license/template.rb
license_finder-2.1.0.rc8 lib/license_finder/license/template.rb
license_finder-2.1.0.rc7 lib/license_finder/license/template.rb
license_finder-2.1.0.rc6 lib/license_finder/license/template.rb
license_finder-2.1.0.rc5 lib/license_finder/license/template.rb
license_finder-2.1.0.rc4 lib/license_finder/license/template.rb
license_finder-2.1.0.rc3 lib/license_finder/license/template.rb
license_finder-2.1.0.rc2 lib/license_finder/license/template.rb
license_finder-2.1.0.rc1 lib/license_finder/license/template.rb
license_finder-2.0.4 lib/license_finder/license/template.rb
license_finder-2.0.3 lib/license_finder/license/template.rb
license_finder-2.0.2 lib/license_finder/license/template.rb
license_finder-2.0.1 lib/license_finder/license/template.rb