Sha256: 00c8bd39a16e239b8d8cae5808da59b9a673f5bb6d570b98cb229c808901b6c1

Contents?: true

Size: 283 Bytes

Versions: 5

Compression:

Stored size: 283 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_grid('Grid') do |_, settings|
        settings.num_cols = 3
        settings.full_border
        7.times.map { |i| "Item #{i}" }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/elements/grid.rb
whirled_peas-0.12.0 screen_test/elements/grid.rb
whirled_peas-0.11.1 screen_test/elements/grid.rb
whirled_peas-0.11.0 screen_test/elements/grid.rb
whirled_peas-0.10.0 screen_test/elements/grid.rb