Class: MonoclePrint::Layout
- Inherits:
-
Array
- Object
- Array
- MonoclePrint::Layout
- Includes:
- Presentation
- Defined in:
- lib/monocle-print/layout.rb
Direct Known Subclasses
Constant Summary
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 included from Presentation
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ Layout
constructor
A new instance of Layout.
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( = nil ) initialize_view( ) super( 0 ) block_given? and yield( self ) end |