class Tmux::Options::ClockModeStyleOption
@api private @see Option
Public Class Methods
from_tmux(value)
click to toggle source
@param (see Option.from_tmux
) @return [Symbol] @api private @see Option.from_tmux
Calls superclass method
# File lib/tmux/options/clock_mode_style_option.rb, line 12 def from_tmux(value) super || {12 => :twelve, 24 => :twenty_four}[value] end
to_tmux(value)
click to toggle source
@param [Symbol<:twelve, :twenty_four>] value @return (see Option.to_tmux
) @see Option.to_tmux
@api private
Calls superclass method
# File lib/tmux/options/clock_mode_style_option.rb, line 20 def to_tmux(value) raise ArgumentError unless [:twelve, :twenty_four].include?(value) super end