Sha256: e82931e83d628d402ee309814eddafc6732a074e24c4b370e1a1277bb515c924

Contents?: true

Size: 505 Bytes

Versions: 216

Compression:

Stored size: 505 Bytes

Contents

require_relative 'guaranteed_file'

module Trackler
  class Description
    def self.for(specification:, track: )
      new(GuaranteedFile.for(specification: specification, track: track, filename: 'description.md'))
    end

    def initialize(description_file)
      @file = description_file
      @content = description_file.content
    end
    private_class_method :new

    def to_s
      @content
    end

    def url
      @file.url
    end

    def exists?
      !@content.empty?
    end
  end
end

Version data entries

216 entries across 216 versions & 1 rubygems

Version Path
trackler-2.2.1.180 lib/trackler/description.rb
trackler-2.2.1.179 lib/trackler/description.rb
trackler-2.2.1.178 lib/trackler/description.rb
trackler-2.2.1.177 lib/trackler/description.rb
trackler-2.2.1.176 lib/trackler/description.rb
trackler-2.2.1.175 lib/trackler/description.rb
trackler-2.2.1.174 lib/trackler/description.rb
trackler-2.2.1.173 lib/trackler/description.rb
trackler-2.2.1.172 lib/trackler/description.rb
trackler-2.2.1.171 lib/trackler/description.rb
trackler-2.2.1.170 lib/trackler/description.rb
trackler-2.2.1.169 lib/trackler/description.rb
trackler-2.2.1.167 lib/trackler/description.rb
trackler-2.2.1.166 lib/trackler/description.rb
trackler-2.2.1.165 lib/trackler/description.rb
trackler-2.2.1.164 lib/trackler/description.rb
trackler-2.2.1.163 lib/trackler/description.rb
trackler-2.2.1.162 lib/trackler/description.rb
trackler-2.2.1.161 lib/trackler/description.rb
trackler-2.2.1.160 lib/trackler/description.rb