class MonoclePrint::Horizontal

Public Instance Methods

height() click to toggle source
# File lib/monocle-print/layout.rb, line 23
def height
  empty? ? 0 : collect { | view | view.height }.max
end
render() click to toggle source
# File lib/monocle-print/layout.rb, line 27
def render
  map { | i | i.render }.inject do | out, text |
    out.juxtapose!( text )
  end
end
width() click to toggle source
# File lib/monocle-print/layout.rb, line 17
def width
  inject( 0 ) do | width, view |
    width + view.width
  end
end