Sha256: 49674d7e3ce9b5932fc650b662437d2c3f3a79caeecfbc3e90d10960140e9b95

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

require_relative 'sandbox'

WhirledPeas.sandbox do |t|
  t.add_box do |outer, outer_s|
    outer_s.full_border
    outer_s.bg_color = :green
    outer_s.set_padding(left: 3, right: 3, top: 1, bottom: 1)
    outer.add_box do |inner1, i1_s|
      i1_s.flow = :t2b
      inner1.add_box { "TOP LEFT" }
      inner1.add_box { "BOTTOM LEFT" }
    end
    outer.add_box do |inner2, i2_s|
      i2_s.flow = :t2b
      inner2.add_box { "TOP RIGHT "}
      inner2.add_box { "BOTTOM RIGHT "}
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whirled_peas-0.3.0 sandbox/box.rb
whirled_peas-0.2.0 sandbox/box.rb
whirled_peas-0.1.1 sandbox/box.rb
whirled_peas-0.1.0 sandbox/box.rb