Class: Trackler::CommonFile

Inherits:
GuaranteedFile show all
Defined in:
lib/trackler/guaranteed_file.rb

Instance Attribute Summary

Attributes inherited from GuaranteedFile

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GuaranteedFile

for

Class Method Details

.location(specification:, filename:, **_track) ⇒ Object



40
41
42
# File 'lib/trackler/guaranteed_file.rb', line 40

def self.location(specification:, filename:, **_track)
  File.join(specification.root, 'problem-specifications', 'exercises', specification.slug, filename)
end

Instance Method Details

#urlObject



44
45
46
# File 'lib/trackler/guaranteed_file.rb', line 44

def url
  "https://github.com/exercism/problem-specifications/blob/master/exercises/%s/#{filename}" % specification.slug
end