lib/ruby_jard/column.rb in ruby_jard-0.2.2 vs lib/ruby_jard/column.rb in ruby_jard-0.2.3

- old
+ new

@@ -1,8 +1,10 @@ # frozen_string_literal: true module RubyJard + ## + # This class is an object to contain information of a column in a data drow display on a screen class Column # Only break at breakable word # | this_is_a <endline> | # | really_long_content | WORD_WRAP_NORMAL = :normal @@ -10,10 +12,10 @@ # | this_is_a really_lon| # | g_content | WORD_WRAP_BREAK_WORD = :break_word extend Forwardable - attr_accessor :spans, :content_length, :width, :word_wrap + attr_accessor :spans, :content_length, :width, :content_width, :word_wrap def initialize(spans: [], word_wrap: WORD_WRAP_NORMAL) @spans = spans @width = 0 @content_length = 0