Sha256: 7e696d9b3a71fd127ae46d4946dd7b1351c1c60fc8dcaa17516f1d49e6aa5db1

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_box('Outer') do |composer, settings|
        settings.full_border
        settings.align = :center
        settings.scrollbar.horiz = true
        settings.width = 5
        composer.add_box('Inner') do |composer, settings|
          settings.set_position(left: -4)
          'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whirled_peas-0.10.0 screen_test/settings/scroll/horiz_box_align_center.rb