Sha256: 26d08aa8cd6cd951ba55f237d9a278167dc472474f32cf708a80baa144f79053
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
require 'json' class Kriterion ROOT = File.dirname __dir__ def self.standards(paths) standards = {} paths.each do |path| Dir["#{path}/*.json"].each do |file| standard = JSON.parse(File.read(file)) standards[standard['name']] = standard end end standards end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kriterion-0.1.0 | lib/kriterion.rb |
kriterion-0.0.1 | lib/kriterion.rb |