Sha256: 93dea4216cb27b720f4c2891c41c5ab4b1d50c97a5c25db2a097b240f441b981

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 = :l2r
        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_l2r.rb
whirled_peas-0.12.0 screen_test/settings/flow/grid_l2r.rb
whirled_peas-0.11.1 screen_test/settings/flow/grid_l2r.rb
whirled_peas-0.11.0 screen_test/settings/flow/grid_l2r.rb
whirled_peas-0.10.0 screen_test/settings/flow/grid_l2r.rb