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(problem:, filename:, **_track) ⇒ Object



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

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

Instance Method Details

#urlObject



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

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