Sha256: eaebfeef59f851f69b5a4bc35b3091c22fcef015847c13ff7a5810ba5d0befa2
Contents?: true
Size: 512 Bytes
Versions: 9
Compression:
Stored size: 512 Bytes
Contents
require 'fitting/records/spherical/request' require 'json' module Fitting class Records class Spherical class Requests def to_a return @to_a if @to_a array = [] Dir['fitting_tests/*.json'].each do |file| array += JSON.load(File.read(file)) end @to_a = array.inject([]) do |res, tested_request| res.push(Fitting::Records::Spherical::Request.load(tested_request)) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems