public static function parseFile($filename)
    {
        $file = new SplFileInfo($filename);

        if (!$file->isFile()) {
            throw new RuntimeException('Invalid filename supplied for `RadHam\Yaml::parseFile()`.');
        }

        $contents = file_get_contents($file->getPathname());

        return self::parse($contents);
    }