Sha256: 8cd31f26db1e7a32883628b326070201a4680ca398f9235a809548876d77a051

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer, settings|
      settings.set_padding(left: 5, top: 5)
      composer.add_box do |composer, settings|
        settings.full_border(color: :green)
        settings.content_start.left = -3
        composer.add_grid('Subject') do |_, settings|
          settings.full_border(color: :red)
          settings.num_cols = 1
          %w[12345 22344 33333 44322 54321]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/settings/content_start/grid_left_negative.rb
whirled_peas-0.12.0 screen_test/settings/content_start/grid_left_negative.rb
whirled_peas-0.11.1 screen_test/settings/content_start/grid_left_negative.rb
whirled_peas-0.11.0 screen_test/settings/content_start/grid_left_negative.rb