{"categories":["Ruby","Rails"],"type":"rich","title":"Ruby\u3067\u5e83\u3081\u305f\u3044if\u6587\u306e\u66f8\u304d\u65b9","blog_url":"https://kenmituo.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenmituo.hatenadiary.org%2Fentry%2F20150119%2F1421649822\" title=\"Ruby\u3067\u5e83\u3081\u305f\u3044if\u6587\u306e\u66f8\u304d\u65b9 - kenmituo\u306e\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>","version":"1.0","published":"2015-01-19 15:43:42","provider_url":"https://hatena.blog","description":"date_check?\u95a2\u6570\u3068\u3044\u3046\u306e\u3092\u4f5c\u3063\u3066 def date_check?(value) #\u65e5\u4ed8\u578b\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d return false if (\u8272\u3005\u306a\u6761\u4ef6\u306b\u5bfe\u3057\u3066\u554f\u984c\u304c\u3042\u3063\u305f\u3089) return true end\u3053\u308c\u3092\u5224\u5b9a\u3055\u305b\u308b\u3068\u304d\u306b if date_check?(day) @day=day else @day=Date.today end\u8aad\u307f\u3084\u3059\u3044\u3051\u3069\u66f8\u3044\u3066\u3044\u3066\u3060\u308b\u3044\u3002\u30b0\u30b0\u3063\u3066\u898b\u3064\u3051\u305f\u76ee\u304b\u3089\u30a6\u30ed\u30b3\u306a\u66f8\u304d\u65b9 @day = if date_check?(day) day else Date.today end\u3053\u308c\u306f\u51c4\u3044\u3002\u611f\u52d5\u3057\u3066\u3044\u308b\u306a\u3046\u3002\u30d0\u30e9\u8272\u3060\u3088\uff01\u4e09\u9805\u6f14\u7b97\u5b50\u3067\u3082\u3044\u3044\u3093\u3058\u3083\u306d\uff1f @day = \u2026","blog_title":"kenmituo\u306e\u65e5\u8a18","height":"190","author_name":"kenmituo","url":"https://kenmituo.hatenadiary.org/entry/20150119/1421649822","author_url":"https://blog.hatena.ne.jp/kenmituo/","provider_name":"Hatena Blog","image_url":null,"width":"100%"}