lib/kosi/connector_char.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
require 'kosi/options'
require 'kosi/char_option'

# TableFormat for Terminal(Use Japanese Characters)
module Kosi
  # ConnectorChar
  class ConnectorChar < CharOption
    DEFAULT = '+'
    INVALID_CHAR_MSG = \
        'connector char must be 1 length(%d) char %s'

    def default
      DEFAULT
    end

    def key
      OptionKeys::CONNECTOR_CHAR
    end

    private

    def invalid_char_msg
      INVALID_CHAR_MSG
    end
  end
end