Sequenzia/lib/Rails/Paths/Paths.php
2013-10-02 11:14:53 -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)
);
}
}