{"url":"https://memorandums.hatenablog.com/entry/20110112/p2","author_name":"ke_takahashi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F20110112%2Fp2\" title=\"makepath - memorandums\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","type":"rich","image_url":null,"provider_url":"https://hatena.blog","blog_url":"https://memorandums.hatenablog.com/","title":"makepath","author_url":"https://blog.hatena.ne.jp/ke_takahashi/","blog_title":"memorandums","description":"Windows\u3068mac(Linux)\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306e\u533a\u5207\u308a\u8a18\u53f7\u304c\u7570\u306a\u308a\u307e\u3059\u306d\u3002ruby\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u306b\u5b9f\u884c\u74b0\u5883\u3092\u53c2\u7167\u3057\u3066\u3053\u306e\u533a\u5207\u308a\u8a18\u53f7\u3092\u5207\u308a\u66ff\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002\u6050\u3089\u304f\u3001\u3053\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3069\u3053\u304b\u306e\u4fbf\u5229\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5165\u3063\u3066\u3044\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3002\u3002\u3002\u63a2\u305b\u306a\u304b\u3063\u305f\u306e\u3067\u6652\u3057\u307e\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u79c1\u306f\u4f7f\u3048\u3066\u3044\u308b\u306e\u3067\u554f\u984c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002 require 'kconv' def makepath( path ) if RUBY_PLATFORM.downcase =~ /mswin/ return path.gsub(/\\//, '\\\\').tosjis end path.gsub\u2026","version":"1.0","width":"100%","categories":[],"published":"2011-01-12 00:00:01","provider_name":"Hatena Blog"}