Sha256: 12c1bbccf867d890a78259ceef26553fc849241edd7a08c95e2890120f450e30

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  TALL_STRING = 10.times.map(&:to_s).join("\n")

  def build(*)
    WhirledPeas.template do |composer|
      composer.add_grid('TallGrid') do |composer, settings|
        settings.full_border
        settings.height = 5
        settings.num_cols = 1
        composer.add_text { TALL_STRING }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/settings/height/overflow_grid.rb
whirled_peas-0.9.0 screen_test/settings/height/overflow_grid.rb
whirled_peas-0.8.0 screen_test/settings/height/overflow_grid.rb
whirled_peas-0.7.1 screen_test/settings/height/overflow_grid.rb
whirled_peas-0.7.0 screen_test/settings/height/overflow_grid.rb
whirled_peas-0.6.0 screen_test/rendered/settings/height/overflow_grid.rb
whirled_peas-0.5.0 screen_test/rendered/settings/height/overflow_grid.rb