module Ollama::Handlers::Concern

def call(response)

Returns:
  • (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)

Parameters:
  • output (IO) -- the output stream to be used for handling responses, defaults to $stdout
def initialize(output: $stdout)
  @output = output
end

def to_proc

Returns:
  • (Proc) - a proc that wraps the handler's call method for response
def to_proc
  -> response { call(response) }
end

def to_proc

Returns:
  • (Proc) - a proc that wraps the handler's call method for response processing
def to_proc
  new.to_proc
end