Sha256: f699f089cba1c54e23fda3193b0af839634bb31d66e8b7403cbf41e80338ba47

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template do |composer|
      composer.add_box do |composer, settings|
        settings.full_border
        settings.align = :evenly
        settings.width = 15
        composer.add_text { 'A' }
        composer.add_text { 'B' }
        composer.add_text { 'C' }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/settings/align/box_evenly.rb
whirled_peas-0.9.0 screen_test/settings/align/box_evenly.rb
whirled_peas-0.8.0 screen_test/settings/align/box_evenly.rb
whirled_peas-0.7.1 screen_test/settings/align/box_evenly.rb
whirled_peas-0.7.0 screen_test/settings/align/box_evenly.rb