Class: Tmux::Options::KeymapOption Private

Inherits:
SymbolOption show all
Defined in:
lib/tmux/options/keymap_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.

See Also:

Class Method Summary collapse

Methods inherited from SymbolOption

from_tmux

Methods inherited from Option

from_tmux

Class Method Details

.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.

Parameters:

  • value (Symbol<:emacs, :vi, :default>)

Returns:

  • (String)

Raises:

  • (ArgumentError)

See Also:



12
13
14
15
# File 'lib/tmux/options/keymap_option.rb', line 12

def to_tmux(value)
  raise ArgumentError unless [:emacs, :vi, :default].include?(value)
  super
end