Sha256: 25a6fecaf1c471c3dd57aeda7981ed14f62abd7dcd193cb434b57f6c15f56099
Contents?: true
Size: 556 Bytes
Versions: 5
Compression:
Stored size: 556 Bytes
Contents
require 'whirled_peas' class TemplateFactory def build(*) WhirledPeas.template do |composer| composer.add_grid('Alignment') do |composer, settings| settings.num_cols = 1 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 grid' } composer.add_text('Content') { 'Default' } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems