Sha256: a8bb5b06fc44518deeafe1ba050f1da209b01e35dd18f37452b13df51cdcf2d9
Contents?: true
Size: 445 Bytes
Versions: 25
Compression:
Stored size: 445 Bytes
Contents
require 'tins/concern' require 'tins/implement' module Ollama::Handlers::Concern extend Tins::Concern extend Tins::Implement def initialize(output: $stdout) @output = output end attr_reader :output attr_reader :result implement :call def to_proc -> response { call(response) } end module ClassMethods def call(response) new.call(response) end def to_proc new.to_proc end end end
Version data entries
25 entries across 25 versions & 1 rubygems