This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/Rails/Paths/Paths.php
2013-10-02 01:12:58 -05:00

15 lines
341 B
PHP
Executable File

<?php
namespace Rails\Paths;
class Paths extends \Rails\Config\Config
{
public function __get($prop)
{
if ($this->offsetExists($prop)) {
return $this->offsetGet($prop);
}
throw new \Rails\Exception\RuntimeException(
sprintf("Trying to get undefined path %s", $prop)
);
}
}