Class: MonoclePrint::ColumnLayout

Inherits:
Table
  • Object
show all
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

Presentation::ALIGNMENTS

Constants included from MonoclePrint

COLOR_ESCAPE, FOUR_BYTES, MULTIBYTE_CHARACTER, ONE_BYTE, THREE_BYTES, TWO_BYTES, VERSION

Instance Attribute Summary

Attributes inherited from Table

#columns, #titles

Attributes included from Presentation

#max_width, #owner

Instance Method Summary collapse

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, options = {} )
  super( columns, options ) do
    @item  = @head = Blank.new( self )
    @foot  = Blank.new( self )
    @style = Style( :blank )
    block_given? and yield( self )
  end
end