class HexaPDF::Document::Layout::ChildrenCollector

def self.collect(layout)

Creates a children collector, yields it and then returns the collected children.
def self.collect(layout)
  collector = new(layout)
  yield(collector)
  collector.children
end