Sha256: c79cee8938a745ea27d2a7087fd16992ef722ccc1a226c7b603b7c8291d46517

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  TALL_STRING = 10.times.map(&:to_s).join("\n")

  def build(*)
    WhirledPeas.template do |composer|
      composer.add_box do |composer, settings|
        settings.full_border
        settings.height = 5
        3.times do |i|
          composer.add_text { TALL_STRING }
        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/height/overflow_box_l2r.rb
whirled_peas-0.9.0 screen_test/settings/height/overflow_box_l2r.rb
whirled_peas-0.8.0 screen_test/settings/height/overflow_box_l2r.rb
whirled_peas-0.7.1 screen_test/settings/height/overflow_box_l2r.rb
whirled_peas-0.7.0 screen_test/settings/height/overflow_box_l2r.rb