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