Sha256: 2d0a37385c75c6c45eb252b31e70e989d9a5b49b481258a84e8f97da609dcb08

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 = :l2r
        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_l2r.rb
whirled_peas-0.9.0 screen_test/settings/flow/grid_l2r.rb
whirled_peas-0.8.0 screen_test/settings/flow/grid_l2r.rb
whirled_peas-0.7.1 screen_test/settings/flow/grid_l2r.rb