1 | <?php |
||
10 | class RubyConfigFileToken implements Token |
||
11 | { |
||
12 | private $file; |
||
13 | |||
14 | /** |
||
15 | * @param string $file |
||
16 | */ |
||
17 | 3 | public function __construct($file = null) |
|
18 | { |
||
19 | 3 | if (null === $file) { |
|
20 | $file = $_SERVER['HOME'] . DIRECTORY_SEPARATOR . '.veye.rc'; |
||
21 | } |
||
22 | |||
23 | 3 | $this->file = $file; |
|
24 | 3 | } |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 2 | public function read() |
|
42 | } |
||
43 |