class UtilsDrawer::TableDrawer::Column
Attributes
text[RW]
Public Class Methods
new(text, size)
click to toggle source
# File lib/utils_drawer/table_drawer/column.rb, line 11 def initialize(text, size) # Ignore ANSI escape sequences pure_text = text.to_pure text += ' ' * (size - pure_text.size) if !size.nil? && size > pure_text.size @text = text end