Class: Tabled::Template::RowFooter
- Inherits:
-
Object
- Object
- Tabled::Template::RowFooter
- Defined in:
- lib/template.rb
Class Method Summary collapse
Class Method Details
.render(row, columns_width, _is_framed) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/template.rb', line 28 def self.render(row, columns_width, _is_framed) return nil unless row.last.fetch(:footer, false) = row.last.fetch(:footer) required_spaces = columns_width.sum - .gsub(/\e\[[0-9;]*m/, '').size + (' ' * required_spaces) end |