module Ollama::Handlers::Concern
def call(response)
-
(self)- returns the handler instance itself after processing the
Parameters:
-
response(Ollama::Response) -- the response object to be processed by the
def call(response) new.call(response) end
def initialize(output: $stdout)
-
output(IO) -- the output stream to be used for handling responses, defaults to $stdout
def initialize(output: $stdout) @output = output end
def to_proc
-
(Proc)- a proc that wraps the handler's call method for response
def to_proc -> response { call(response) } end
def to_proc
-
(Proc)- a proc that wraps the handler's call method for response processing
def to_proc new.to_proc end