function yaml_encode($array) { return Dipper::make($array); }
public function asString() { $jsondom = new \FluentDOM\Serializer\Json($this->_document); $yaml = Dipper::make($jsondom->jsonSerialize()); return (string) $yaml; }