Module: OllamaChat::Switches::CheckSwitch

Extended by:
Tins::Concern
Included in:
CombinedSwitch, Switch
Defined in:
lib/ollama_chat/switches.rb

Instance Method Summary collapse

Instance Method Details

#off?TrueClass, FalseClass

The off? method returns true if the switch is in the off state, false otherwise.

Returns:

  • (TrueClass, FalseClass)

    indicating whether the switch is off



13
14
15
# File 'lib/ollama_chat/switches.rb', line 13

def off?
  !on?
end

#showvoid

This method returns an undefined value.

The show method outputs the current value of the message to standard output.



21
22
23
# File 'lib/ollama_chat/switches.rb', line 21

def show
  STDOUT.puts @msg[value]
end