Sha256: 54dc44d2d5baf26094f6089e162938ea389fa647296af3c4bf54060ee7124421

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_box do |composer, settings|
        settings.full_border
        composer.add_box do |_, settings|
          settings.set_margin(left: 5, top: 2, right: 3, bottom: 1)
          settings.full_border
          'Inner Box'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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