class Fidgit::MainPacker

Main container that can contains a single “proper” packing element.

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File lib/fidgit/elements/main_packer.rb, line 6
def initialize(options = {})
  options = {
      width: $window.width,
      height: $window.height,
  }.merge! options

  super options
end

Public Instance Methods

add(element) click to toggle source
Calls superclass method
# File lib/fidgit/elements/main_packer.rb, line 20
def add(element)
  raise "MainPacker can only contain packing elements" unless element.is_a? Packer
  super(element)
end
height() click to toggle source
# File lib/fidgit/elements/main_packer.rb, line 16
def height; $window.height; end
height=(value) click to toggle source
# File lib/fidgit/elements/main_packer.rb, line 18
def height=(value); ; end
width() click to toggle source
# File lib/fidgit/elements/main_packer.rb, line 15
def width; $window.width; end
width=(value) click to toggle source
# File lib/fidgit/elements/main_packer.rb, line 17
def width=(value); ; end