Class: Tmux::Options::BooleanOption Private
- Defined in:
- lib/tmux/options/boolean_option.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .from_tmux(value) ⇒ Boolean private
- .to_tmux(value) ⇒ String private
Class Method Details
.from_tmux(value) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/tmux/options/boolean_option.rb', line 12 def from_tmux(value) super || value == "on" end |
.to_tmux(value) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/tmux/options/boolean_option.rb', line 20 def to_tmux(value) super || value ? "on" : "off" end |