Sha256: d54e634044cfaaadf3266cd9e91e8dc5288c3c8eef8cff7104daf5e1556740b1

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

require 'json'

module ConfigFiles
  module Loaders
    class Json
      class << self
        def call(file_name, object_class: ::Hash)
          ::JSON.load(file_name, nil, {object_class: object_class, quirks_mode: true})
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
config_files-0.1.2 lib/config_files/loaders/json.rb