Sha256: 336ad2a4c7571b87d0aa6b9ea227a2b29bc81fc5c6942b22dbe4c6dab655c98a

Contents?: true

Size: 354 Bytes

Versions: 5

Compression:

Stored size: 354 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template do |composer|
      composer.add_box do |composer, settings|
        settings.width = 10
        settings.flow = :t2b
        settings.full_border
        str = ''
        10.times do
          composer.add_text { str += 'XO' }
        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/width/overflow_box_t2b.rb
whirled_peas-0.9.0 screen_test/settings/width/overflow_box_t2b.rb
whirled_peas-0.8.0 screen_test/settings/width/overflow_box_t2b.rb
whirled_peas-0.7.1 screen_test/settings/width/overflow_box_t2b.rb
whirled_peas-0.7.0 screen_test/settings/width/overflow_box_t2b.rb