Module: Ollama::Handlers::Concern
- Extended by:
- Tins::Concern, Tins::Implement
- Defined in:
- lib/ollama/handlers/concern.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
12 13 14 |
# File 'lib/ollama/handlers/concern.rb', line 12 def output @output end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
14 15 16 |
# File 'lib/ollama/handlers/concern.rb', line 14 def result @result end |
Instance Method Details
#initialize(output: $stdout) ⇒ Object
8 9 10 |
# File 'lib/ollama/handlers/concern.rb', line 8 def initialize(output: $stdout) @output = output end |
#to_proc ⇒ Object
18 19 20 |
# File 'lib/ollama/handlers/concern.rb', line 18 def to_proc -> response { call(response) } end |