{"title":"case\u306e\u66f8\u304d\u65b9","width":"100%","blog_url":"https://mzp.hatenadiary.org/","image_url":null,"author_name":"mzp","provider_name":"Hatena Blog","type":"rich","published":"2008-02-20 00:00:01","url":"https://mzp.hatenadiary.org/entry/20080220/rule","description":"Ruby\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04 case\u3092\u4f7f\u7528\u3067\u304d\u308b\u5834\u5408\u306f\u3001case\u3092\u4f7f\u7528\u3059\u308b\u3002 \u3084\u3063\u3071\u308a\u3069\u3046\u8003\u3048\u3066\u3082\u3001\u3053\u306ecase\u306e\u4f7f\u3044\u65b9\u306f\u5909\u3060\u308d\u3046\u3002 case path.basename.exist? when true name = alt_name(Pathname.new(\".\"),path.basename(\".*\"),path.extname) FileUtils.mv(path,name) else FileUtils.mv(path,path.basename) end","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080220%2Frule\" title=\"case\u306e\u66f8\u304d\u65b9 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" 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","author_url":"https://blog.hatena.ne.jp/mzp/","version":"1.0","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","categories":["\u30e1\u30e2","Ruby"]}