class MonoclePrint::Vertical
Public Instance Methods
height()
click to toggle source
# File lib/monocle-print/layout.rb, line 41 def height inject( 0 ) do | height, view | height + view.height end end
render()
click to toggle source
# File lib/monocle-print/layout.rb, line 47 def render map { | i | i.render }.inject do | out, text | out.concat( text ) end.fix! end
width()
click to toggle source
# File lib/monocle-print/layout.rb, line 37 def width empty? ? 0 : collect { | view | view.width }.max end