Sha256: c9dfe67aad6b6a98416a22898566f6c96ec572ad91232de36607ff59ebb9151b

Contents?: true

Size: 473 Bytes

Versions: 4

Compression:

Stored size: 473 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer, settings|
      settings.set_padding(left: 5, top: 5)
      composer.add_box do |composer, settings|
        settings.full_border(color: :green)
        settings.content_start.top = -3
        composer.add_box do |_, settings|
          settings.full_border(color: :red)
          %w[12345 22344 33333 44322 54321].join("\n")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/settings/content_start/box_top_negative.rb
whirled_peas-0.12.0 screen_test/settings/content_start/box_top_negative.rb
whirled_peas-0.11.1 screen_test/settings/content_start/box_top_negative.rb
whirled_peas-0.11.0 screen_test/settings/content_start/box_top_negative.rb