Sha256: 21c4ca333729a087d204b525d744184ceb07a8b1323d907debec27415a16f360

Contents?: true

Size: 356 Bytes

Versions: 14

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

14 entries across 14 versions & 1 rubygems

Version Path
license_finder-5.4.1 lib/license_finder/license/template.rb
license_finder-5.4.0 lib/license_finder/license/template.rb
license_finder-5.3.0 lib/license_finder/license/template.rb
license_finder-5.2.3 lib/license_finder/license/template.rb
license_finder-5.2.1 lib/license_finder/license/template.rb
license_finder-5.2.0 lib/license_finder/license/template.rb
license_finder-5.1.1 lib/license_finder/license/template.rb
license_finder-5.1.0 lib/license_finder/license/template.rb
license_finder-5.0.3 lib/license_finder/license/template.rb
license_finder-5.0.2 lib/license_finder/license/template.rb
license_finder-5.0.0 lib/license_finder/license/template.rb
license_finder-4.0.2 lib/license_finder/license/template.rb
license_finder-4.0.1 lib/license_finder/license/template.rb
license_finder-3.1.1 lib/license_finder/license/template.rb