Class: MonoclePrint::ColumnLayout
- Defined in:
- lib/monocle-print/table.rb
Constant Summary
Constants inherited from Table
Table::Blank, Table::Divider, Table::Row, Table::SectionTitle, Table::TitleRow
Constants included from Presentation
Constants included from MonoclePrint
COLOR_ESCAPE, FOUR_BYTES, MULTIBYTE_CHARACTER, ONE_BYTE, THREE_BYTES, TWO_BYTES, VERSION
Instance Attribute Summary
Attributes inherited from Table
Attributes included from Presentation
Instance Method Summary collapse
-
#initialize(columns, options = {}) ⇒ ColumnLayout
constructor
A new instance of ColumnLayout.
Methods inherited from Table
build, #column, #divider, #each, #expand_columns, #fixed_columns, #inner_width, #malleable_columns, #render_content, #resize, #row, #rows, #section, #title_row, #width
Methods included from Presentation
#alignment, #alignment=, #height, included, #output, #output=, #render, #style, #style=, #to_s, #width
Methods included from MonoclePrint
Line, Output, Rectangle, Style, Text, buffer, included, library_path, stderr, stdout, version
Constructor Details
#initialize(columns, options = {}) ⇒ ColumnLayout
Returns a new instance of ColumnLayout.
218 219 220 221 222 223 224 225 |
# File 'lib/monocle-print/table.rb', line 218 def initialize( columns, = {} ) super( columns, ) do @item = @head = Blank.new( self ) @foot = Blank.new( self ) @style = Style( :blank ) block_given? and yield( self ) end end |