Class: MonoclePrint::Layout

Inherits:
Array
  • Object
show all
Includes:
Presentation
Defined in:
lib/monocle-print/layout.rb

Direct Known Subclasses

Flow, Horizontal, Vertical

Constant Summary

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 included from Presentation

#max_width, #owner

Instance Method Summary collapse

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(options = nil) ⇒ Layout

Returns a new instance of Layout.



8
9
10
11
12
# File 'lib/monocle-print/layout.rb', line 8

def initialize( options = nil )
  initialize_view( options )
  super( 0 )
  block_given? and yield( self )
end