Sha256: 953fb8fd636a8d5df62dc89d3695fc807be5f228dfb25ff9fe1c424fdd7bad63

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

module LicenseFinder
  class License
    class Template
      def self.named(name)
        path = ROOT_PATH.join("license", "templates", "#{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

1 entries across 1 versions & 1 rubygems

Version Path
license_finder-2.0.0.rc2 lib/license_finder/license/template.rb