Sha256: 6a0b87b9f0b391841f78e1d81fd46181be07fb3d99b7dc9587c469ab24414cd8
Contents?: true
Size: 237 Bytes
Versions: 1
Compression:
Stored size: 237 Bytes
Contents
module Separatum module Importers class JsonFile def initialize(file_name:) @file_name = file_name end def call(*_) str = File.read(@file_name) JSON.parse(str) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
separatum-0.1.0 | lib/separatum/importers/json_file.rb |