Sha256: 091c9d0f311fef0f0cb88e883761f49b525dcba3edbfbae38a00429428ebc14d
Contents?: true
Size: 666 Bytes
Versions: 5
Compression:
Stored size: 666 Bytes
Contents
require 'whirled_peas' class TemplateFactory def build(*) WhirledPeas.template(:test) do |composer| composer.add_grid do |composer, settings| settings.num_cols = 2 composer.add_box('Alignment') do |composer, settings| settings.flow = :t2b settings.full_border # Keep the title long so grids below will be wide enough to use the # alignment attribute. Don't rely on the `width` attribute to keep # `align` isolated in this test. composer.add_text('Title') { 'This is an aligned box' } composer.add_text('Content') { 'Default' } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems