module Ollama::JSONLoader
def load_from_json(path)
-
(self)- a new instance of the class initialized with the JSON data
Parameters:
-
path(String) -- the filesystem path to the JSON configuration file
def load_from_json(path) json = File.read(path) new(**config_hash = JSON.parse(json, symbolize_names: true)) end