piotrmurach/tty-table

View on GitHub
lib/tty/table/border/unicode.rb

Summary

Maintainability
A
40 mins
Test Coverage
# frozen_string_literal: true
 
require_relative "../border"
 
Similar blocks of code found in 2 locations. Consider refactoring.
module TTY
class Table
class Border
# A class that represents a unicode border.
#
# @api private
class Unicode < Border
 
def_border do
top "─"
top_mid "┬"
top_left "┌"
top_right "┐"
bottom "─"
bottom_mid "┴"
bottom_left "└"
bottom_right "┘"
mid "─"
mid_mid "┼"
mid_left "├"
mid_right "┤"
left "│"
center "│"
right "│"
end
 
end # Unicode
end # Border
end # Table
end # TTY