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
A new instance of CombinedSwitch.
- #value ⇒ Object
Methods included from CheckSwitch
Constructor Details
#initialize(value:, msg:) ⇒ CombinedSwitch
Returns a new instance of CombinedSwitch.
40 41 42 43 |
# File 'lib/ollama_chat/switches.rb', line 40 def initialize(value:, msg:) @value = value @msg = msg end |
Instance Method Details
#value ⇒ Object
45 46 47 |
# File 'lib/ollama_chat/switches.rb', line 45 def value @value.() end |