Sha256: 514eadb22f5ebc62a30af97457b4b125fc00bdd26368f3dd873c597fece74184

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_box('Container') do |composer, settings|
        composer.add_box do |composer, settings|
          settings.flow = :t2b
          composer.add_box('TopLeft') { "TOP LEFT" }
          composer.add_box('BottomLeft') { "BOTTOM LEFT" }
        end
        composer.add_box do |composer, settings|
          settings.flow = :t2b
          composer.add_box('TopRight') { " TOP RIGHT   " }
          composer.add_box('BottomRight') { " BOTTOM RIGHT" }
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/elements/box.rb
whirled_peas-0.12.0 screen_test/elements/box.rb
whirled_peas-0.11.1 screen_test/elements/box.rb
whirled_peas-0.11.0 screen_test/elements/box.rb
whirled_peas-0.10.0 screen_test/elements/box.rb