Class: OllamaChat::Switches::CombinedSwitch

Inherits:
Object
  • Object
show all
Includes:
CheckSwitch
Defined in:
lib/ollama_chat/switches.rb

Instance Method Summary collapse

Methods included from CheckSwitch

#off?, #show

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

#valueObject



45
46
47
# File 'lib/ollama_chat/switches.rb', line 45

def value
  @value.()
end