Method: Wallbum::ImagePacking::Rectangle#empty_child

Defined in:
lib/wallbum/rectangle.rb

#empty_childObject



64
65
66
67
68
69
70
71
72
73
74
# File 'lib/wallbum/rectangle.rb', line 64

def empty_child
  if leaf? 
    if empty?
      self
    else
      nil
    end
  else
    @children.map(&:empty_child).compact.first
  end
end