Sha256: 4cd47a76b4a93584988394f4ddfbf19bf4742d8da32bf3157e92b14feba62fd9

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

require 'whirled_peas'

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

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/settings/scroll/horiz_box_align_center.rb
whirled_peas-0.9.0 screen_test/settings/scroll/horiz_box_align_center.rb
whirled_peas-0.8.0 screen_test/settings/scroll/horiz_box_align_center.rb
whirled_peas-0.7.1 screen_test/settings/scroll/horiz_box_align_center.rb
whirled_peas-0.7.0 screen_test/settings/scroll/horiz_box_align_center.rb