Sha256: e9b6bfeb03f5d65d781d6ce325b92e126bf437a38e16fe6d94a2e828dc8a915f
Contents?: true
Size: 615 Bytes
Versions: 26
Compression:
Stored size: 615 Bytes
Contents
module Inch module Codebase class Proxy attr_reader :objects def initialize(language, provider) @objects = Codebase::Objects.new(language, provider.objects) end def grade_lists lists = Evaluation.new_grade_lists lists.each do |range| list = objects.select { |o| range.scores.include?(o.score) } range.objects = Objects.sort_by_priority(list) end lists end def self.parse(dir, config) provider = CodeObject::Provider.parse(dir, config) new(config.language, provider) end end end end
Version data entries
26 entries across 26 versions & 1 rubygems