Sha256: b6398b45915dfe776a6d35250a43e18b4fcd6a2d2156b93c1bcade69c3816630

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

paths = Dir[File.expand_path('../trackler/**/*.rb', __FILE__)]
paths.each { |path| require path }

module Trackler
  def self.root
    File.expand_path("../../", __FILE__)
  end

  def self.problems
    @problems ||= Problems.new(root)
  end

  def self.tracks
    @tracks ||= Tracks.new(root)
  end

  def self.implementations
    return @implementations if !!@implementations

    @implementations = Hash.new { |h, k| h[k] = [] }
    tracks.each do |track|
      track.implementations.each do |implementation|
        @implementations[implementation.problem.slug] << implementation
      end
    end
    @implementations
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackler-1.0.0.1 lib/trackler.rb
trackler-1.0.0 lib/trackler.rb