Class: Ollama::Handlers::DumpJSON
- Inherits:
-
Object
- Object
- Ollama::Handlers::DumpJSON
- Includes:
- Concern
- Defined in:
- lib/ollama/handlers/dump_json.rb
Instance Attribute Summary
Attributes included from Concern
Instance Method Summary collapse
Methods included from Concern
Instance Method Details
#call(response) ⇒ Object
4 5 6 7 |
# File 'lib/ollama/handlers/dump_json.rb', line 4 def call(response) @output.puts JSON::pretty_generate(response, allow_nan: true, max_nesting: false) self end |