Sha256: d5ecbc2f0ac2a6048f6b856cc19b1bbcbd0fb9efb5059bd8465c6fbcbfc6e3bd

Contents?: true

Size: 331 Bytes

Versions: 9

Compression:

Stored size: 331 Bytes

Contents

module LicenseFinder
  class License
    class Template
      def self.named(name)
        path = ROOT_PATH.join("data", "licenses", "#{name}.txt")
        new(path.read)
      end

      attr_reader :content

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
license_finder-1.2 lib/license_finder/license/template.rb
license_finder-1.2-java lib/license_finder/license/template.rb
license_finder-1.1.1-java lib/license_finder/license/template.rb
license_finder-1.1.1 lib/license_finder/license/template.rb
license_finder-1.1.0 lib/license_finder/license/template.rb
license_finder-1.0.1 lib/license_finder/license/template.rb
license_finder-1.0.0.1 lib/license_finder/license/template.rb
license_finder-1.0.0.0 lib/license_finder/license/template.rb
license_finder-1.0.0.0-java lib/license_finder/license/template.rb