Sha256: 5a79aab62edc16abc4ed8dd13e9491345fee130efca2570b5fd8156c34b3c31e

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_box do |composer, settings|
        settings.flow = :b2t
        settings.full_border
        composer.add_box('Medium') do |composer, settings|
          settings.full_border
          settings.padding.horiz = 3
          '1. MEDIUM'
        end
        composer.add_box('Wide') do |composer, settings|
          settings.full_border
          settings.padding.horiz = 7
          '2. WIDE'
        end
        composer.add_box('Narrow') do |composer, settings|
          settings.full_border
          '3. NARROW'
        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_b2t.rb
whirled_peas-0.12.0 screen_test/settings/flow/box_b2t.rb
whirled_peas-0.11.1 screen_test/settings/flow/box_b2t.rb
whirled_peas-0.11.0 screen_test/settings/flow/box_b2t.rb
whirled_peas-0.10.0 screen_test/settings/flow/box_b2t.rb