Sha256: 085a55fec337a91f2560eb855a5beb3f12545bdc4e9d1efc45d44e9b5a0c8d14

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) 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

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.12.0 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.11.1 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.11.0 screen_test/settings/flow/grid_r2l.rb
whirled_peas-0.10.0 screen_test/settings/flow/grid_r2l.rb