{"url":"https://bleu48.hatenablog.com/entry/20120307/1331111635","width":"100%","title":"Groovy\u306e\u67d4\u3089\u304b\u3055","categories":["\u30d7\u30ed\u30b0\u30e9\u30e0"],"image_url":null,"author_url":"https://blog.hatena.ne.jp/the48/","type":"rich","version":"1.0","blog_url":"https://bleu48.hatenablog.com/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleu48.hatenablog.com%2Fentry%2F20120307%2F1331111635\" title=\"Groovy\u306e\u67d4\u3089\u304b\u3055 - 48&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"the48","published":"2012-03-07 18:13:55","provider_url":"https://hatena.blog","blog_title":"48's diary","description":"a, b = 3, 4 \u3068\u304bRuby\u3067\u3082\u51fa\u6765\u307e\u3057\u305f\u3051\u3069\uff0cGloovy\u3067\u3082 (a, b) = [3, 4] \u30b3\u30fc\u30c9\u66f8\u304f\u4eba\u306b\u306f\u4fbf\u5229\u3067\u3059\u306d\u3047\u3002 \u305d\u308c\u304b\u3089switch\u6587\u304c\u67d4\u3089\u304b\u3044\u67d4\u3089\u304b\u3044\u3002 \u9055\u3046\u578b\u3082\u8a31\u3059\u3002 def soft(x) { switch (x) { case \"x\": '\u3048\u3063\u304f\u3059'; break case ~/a(.*)c/: 'a\u3067\u59cb\u307e\u3063\u3066c\u3067\u7d42\u308f\u308b'; break case String: '\u305d\u308c\u4ee5\u5916\u306e\u6587\u5b57\u5217'; break case 1..2: '\uff11\u304b\uff12'; break case [4,6,8]: '\uff14\u304b\uff16\u304b\uff18'; break case {it % 15 == 0}: 'FizzBuz\u2026","provider_name":"Hatena Blog"}