Sha256: 531a5bd3d68edf342ef4326da7eb312956171415de3d424511aba79b6907517d

Contents?: true

Size: 302 Bytes

Versions: 4

Compression:

Stored size: 302 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template do |composer, settings|
      composer.add_grid do |_, settings|
        settings.flow = :r2l
        settings.full_border
        settings.num_cols = 4
        10.times.map { |i| i + 1 }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.9.0 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.8.0 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.7.1 screen_test/settings/flow/grid_r2l.rb