Sha256: d125469aaac6f84ef5bbaf4aade67f2a4fbafc97cfce8604b17ed6cf1fb95309

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) 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

Version Path
whirled_peas-0.13.0 screen_test/settings/align/grid_default.rb
whirled_peas-0.12.0 screen_test/settings/align/grid_default.rb
whirled_peas-0.11.1 screen_test/settings/align/grid_default.rb
whirled_peas-0.11.0 screen_test/settings/align/grid_default.rb
whirled_peas-0.10.0 screen_test/settings/align/grid_default.rb