Module: OllamaChat::Switches::CheckSwitch
- Extended by:
- Tins::Concern
- Included in:
- CombinedSwitch, Switch
- Defined in:
- lib/ollama_chat/switches.rb
Instance Method Summary collapse
-
#off? ⇒ TrueClass, FalseClass
The off? method returns true if the switch is in the off state, false otherwise.
-
#show ⇒ void
The show method outputs the current value of the message to standard output.
Instance Method Details
#off? ⇒ TrueClass, FalseClass
The off? method returns true if the switch is in the off state, false otherwise.
13 14 15 |
# File 'lib/ollama_chat/switches.rb', line 13 def off? !on? end |
#show ⇒ void
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 |