Sha256: c145a29d7a0006c03383be6315b17804f606065dce7563e1873a8207795b477f

Contents?: true

Size: 678 Bytes

Versions: 5

Compression:

Stored size: 678 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_box do |composer, settings|
        settings.flow = :r2l
        settings.full_border
        composer.add_box('Medium') do |composer, settings|
          settings.padding.vert = 2
          settings.full_border
          '1. MEDIUM'
        end
        composer.add_box('Tall') do |composer, settings|
          settings.padding.vert = 4
          settings.full_border
          '2. TALL'
        end
        composer.add_box('Short') do |composer, settings|
          settings.full_border
          '3. SHORT'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.12.0 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.11.1 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.11.0 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.10.0 screen_test/settings/flow/box_r2l.rb