Sha256: b92f310488a4f1a6774dac012d42a6a5e89cbd58fc109b12f2f6f1100c637f52
Contents?: true
Size: 794 Bytes
Versions: 10
Compression:
Stored size: 794 Bytes
Contents
<?php namespace MtHaml\Node; use MtHaml\NodeVisitor\NodeVisitorInterface; class Root extends NestAbstract { public function __construct(array $position = null) { parent::__construct($position ?: array('lineno' => 0, 'column' => 0)); } public function getNodeName() { return 'root'; } public function accept(NodeVisitorInterface $visitor) { if (false !== $visitor->enterRoot($this)) { if (false !== $visitor->enterRootContent($this)) { $this->visitContent($visitor); } $visitor->leaveRootContent($this); if (false !== $visitor->enterRootChilds($this)) { $this->visitChilds($visitor); } $visitor->leaveRootChilds($this); } $visitor->leaveRoot($this); } }
Version data entries
10 entries across 10 versions & 1 rubygems