Sha256: e6cb7a240353d75f23911ee45b08a241836cc0adcc018674b30595f786f046fe

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template do |composer|
      composer.add_box('Outer') do |composer, settings|
        settings.full_border
        settings.scrollbar.vert = true
        settings.height = 5
        composer.add_box('Inner') do |composer, settings|
          settings.flow = :t2b
          settings.set_position(top: -4)
          26.times do |i|
            composer.add_text { ('A'.ord + i).chr }
          end
        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/vert_box.rb
whirled_peas-0.9.0 screen_test/settings/scroll/vert_box.rb
whirled_peas-0.8.0 screen_test/settings/scroll/vert_box.rb
whirled_peas-0.7.1 screen_test/settings/scroll/vert_box.rb
whirled_peas-0.7.0 screen_test/settings/scroll/vert_box.rb