Method: TTY::Table::Renderer::Basic#create_operations
- Defined in:
- lib/tty/table/renderer/basic.rb
permalink #create_operations(widths) ⇒ Array[String, Operation]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize operations
223 224 225 226 227 228 229 230 231 |
# File 'lib/tty/table/renderer/basic.rb', line 223 def create_operations(widths) [ [:alignment, Operation::Alignment.new(alignments, widths)], [:filter, Operation::Filter.new(filter)], [:truncation, Operation::Truncation.new(widths)], [:wrapping, Operation::Wrapped.new(widths)], [:padding, Operation::Padding.new(padding)] ] end |