Sha256: 5a3971352ba063d01c5258bfe708676af52609acac8708232b83cf9bb120cbbe

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

require 'whirled_peas'

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