Sha256: 67eebb6b5a004a3b0b5bbba234991f6f8041a01d6a28c05e78b6877315d75a94
Contents?: true
Size: 692 Bytes
Versions: 6
Compression:
Stored size: 692 Bytes
Contents
require_relative "vertical" module Fidgit # Main container that can contains a single "proper" packing element. class MainPacker < Vertical def initialize(options = {}) options = { width: $window.width, height: $window.height, }.merge! options super options end def width; $window.width; end def height; $window.height; end def width=(value); ; end def height=(value); ; end def add(element) raise "MainPacker can only contain one packing element" unless empty? raise "MainPacker can only contain packing elements" unless element.is_a? Packer super(element) end end end
Version data entries
6 entries across 6 versions & 1 rubygems