Sha256: abe8e2bc72ac20ab517e82c34c229010ae30438a9e8c37f4c089ead42f85b2e6

Contents?: true

Size: 671 Bytes

Versions: 5

Compression:

Stored size: 671 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template 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.9.1 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.9.0 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.8.0 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.7.1 screen_test/settings/flow/box_r2l.rb
whirled_peas-0.7.0 screen_test/settings/flow/box_r2l.rb