{"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fma-asa.hatenadiary.org%2Fentry%2F20050204%2Fp3\" title=\"File.expand_path\u304c\u30b7\u30d5\u30c8JIS\u306e\u30d1\u30b9\u3092\u8fd4\u305b\u306a\u3044 - \u304b\u3048\u308b\u4e09\u5341\u90ce\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"File.expand_path\u304c\u30b7\u30d5\u30c8JIS\u306e\u30d1\u30b9\u3092\u8fd4\u305b\u306a\u3044","provider_url":"https://hatena.blog","description":"\u5fdc\u6025\u51e6\u7f6e\u3067\u3059\u304c\u3001Ruby\u306eFile.expand_path\u3092\u518d\u5b9a\u7fa9\u3057\u3066\u3001\u4e2d\u3067Win32API \"GetFullPathName\" \u3092\u547c\u3093\u3067\u307f\u307e\u3057\u305f\u3002 module K32 extend DL::Importable dlload \"kernel32.dll\" extern 'long GetFullPathName(char *,long, char *, char **)' end class File def self.expand_path(path, dir=nil) path = [dir, path].join('\\\\') if dir size=1000 expand=\"\\0\"*\u2026","url":"https://ma-asa.hatenadiary.org/entry/20050204/p3","version":"1.0","blog_title":"\u304b\u3048\u308b\u4e09\u5341\u90ce","author_name":"ma-asa","categories":["Ruby"],"provider_name":"Hatena Blog","type":"rich","width":"100%","author_url":"https://blog.hatena.ne.jp/ma-asa/","blog_url":"https://ma-asa.hatenadiary.org/","published":"2005-02-04 00:00:01","image_url":null}