Sha256: 3750f43ff8b66f377357f17ab7f18c4d065484f24d5e473eb211342acb0e14a2

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 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.top = 3
        composer.add_grid 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_top.rb
whirled_peas-0.12.0 screen_test/settings/content_start/grid_top.rb
whirled_peas-0.11.1 screen_test/settings/content_start/grid_top.rb
whirled_peas-0.11.0 screen_test/settings/content_start/grid_top.rb