Sha256: be0eeefd05a961d2224b92c2bd74571176a676e1aca4f6489c9c0e3f565c16ef

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template 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

7 entries across 7 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/elements/box.rb
whirled_peas-0.9.0 screen_test/elements/box.rb
whirled_peas-0.8.0 screen_test/elements/box.rb
whirled_peas-0.7.1 screen_test/elements/box.rb
whirled_peas-0.7.0 screen_test/elements/box.rb
whirled_peas-0.6.0 screen_test/rendered/elements/box.rb
whirled_peas-0.5.0 screen_test/rendered/elements/box.rb