Sha256: d93176b69a70aea3d6474cd9959a42dc8e99253703fd3816168ef4da872d93c0

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 = :l2r
        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_l2r.rb
whirled_peas-0.9.0 screen_test/settings/flow/box_l2r.rb
whirled_peas-0.8.0 screen_test/settings/flow/box_l2r.rb
whirled_peas-0.7.1 screen_test/settings/flow/box_l2r.rb
whirled_peas-0.7.0 screen_test/settings/flow/box_l2r.rb