Class: OllamaChat::Switches::CombinedSwitch
- Inherits:
-
Object
- Object
- OllamaChat::Switches::CombinedSwitch
- Includes:
- CheckSwitch
- Defined in:
- lib/ollama_chat/switches.rb
Instance Method Summary collapse
-
#initialize(value:, msg:) ⇒ CombinedSwitch
constructor
The initialize method sets up the switch with a value and message.
-
#value ⇒ Object
The value method returns the result of calling the stored proc with no arguments.
Methods included from CheckSwitch
Constructor Details
#initialize(value:, msg:) ⇒ CombinedSwitch
The initialize method sets up the switch with a value and message.
72 73 74 75 |
# File 'lib/ollama_chat/switches.rb', line 72 def initialize(value:, msg:) @value = value @msg = msg end |
Instance Method Details
#value ⇒ Object
The value method returns the result of calling the stored proc with no arguments.
79 80 81 |
# File 'lib/ollama_chat/switches.rb', line 79 def value @value.() end |