Class: LLM::JSONAdapter::JSON
- Inherits:
-
LLM::JSONAdapter
- Object
- LLM::JSONAdapter
- LLM::JSONAdapter::JSON
- Defined in:
- lib/llm/json_adapter.rb
Overview
The LLM::JSONAdapter::JSON class provides a JSON adapter backed by the standard library JSON module.
Class Method Summary collapse
Class Method Details
.dump(obj) ⇒ Object
38 39 40 41 |
# File 'lib/llm/json_adapter.rb', line 38 def self.dump(obj) require "json" unless defined?(::JSON) ::JSON.dump(obj) end |