Module: MiniHistogram::MiniUnicodePlot::BorderPrinter
Constant Summary
Constants included from StyledPrinter
StyledPrinter::COLOR_DECODE, StyledPrinter::COLOR_ENCODE, StyledPrinter::DISABLE_TEXT_STYLE, StyledPrinter::TEXT_COLORS
Instance Method Summary collapse
- #print_border_bottom(out, padding, length, border = :solid, color: :light_black) ⇒ Object
- #print_border_top(out, padding, length, border = :solid, color: :light_black) ⇒ Object
Methods included from StyledPrinter
#color?, #print_color, #print_styled
Instance Method Details
#print_border_bottom(out, padding, length, border = :solid, color: :light_black) ⇒ Object
373 374 375 376 377 |
# File 'lib/mini_histogram/plot.rb', line 373 def print_border_bottom(out, padding, length, border=:solid, color: :light_black) return if border == :none b = BORDER_MAP[border] print_styled(out, padding, b[:bl], b[:b] * length, b[:br], color: color) end |
#print_border_top(out, padding, length, border = :solid, color: :light_black) ⇒ Object
367 368 369 370 371 |
# File 'lib/mini_histogram/plot.rb', line 367 def print_border_top(out, padding, length, border=:solid, color: :light_black) return if border == :none b = BORDER_MAP[border] print_styled(out, padding, b[:tl], b[:t] * length, b[:tr], color: color) end |